devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Documentation: bindings: Warn about yamllint and dt-schema before submitting patches
Date: Wed, 22 Dec 2021 13:17:09 -0400	[thread overview]
Message-ID: <YcNdlaxuGzhDlNKf@robh.at.kernel.org> (raw)
In-Reply-To: <20211216164727.2888916-1-alexandre.ghiti@canonical.com>

On Thu, Dec 16, 2021 at 05:47:27PM +0100, Alexandre Ghiti wrote:
> Make sure people know that yamllint must be installed and dt-schema up
> to date before they submit device tree bindings patches.
> 
> Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
> ---
>  Documentation/devicetree/bindings/submitting-patches.rst | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/submitting-patches.rst b/Documentation/devicetree/bindings/submitting-patches.rst
> index 36a17b250ccc..3553e90bef5a 100644
> --- a/Documentation/devicetree/bindings/submitting-patches.rst
> +++ b/Documentation/devicetree/bindings/submitting-patches.rst
> @@ -25,6 +25,10 @@ I. For patch submitters
>  
>         make dt_binding_check
>  

This will already tell you if dt-schema is out of date.

yamllint is optional for the build system, but we could make it 
required or warn when not present. I think people do get surprised by 
yamllint warnings reported.

> +     Make sure yamllint is installed and dt-schema is up to date::
> +
> +       pip3 install dtschema --upgrade
> +
>       See Documentation/devicetree/bindings/writing-schema.rst for more details

This already has details on running pip3, so now we have it in 2 places. 
And they don't match because writing-schema.rst says how to install from 
git rather than pypi. Not sure what happens if you install from git and 
then run the above...

>       about schema and tools setup.
>  
> -- 
> 2.32.0
> 
> 

      reply	other threads:[~2021-12-22 17:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-16 16:47 [PATCH] Documentation: bindings: Warn about yamllint and dt-schema before submitting patches Alexandre Ghiti
2021-12-22 17:17 ` Rob Herring [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YcNdlaxuGzhDlNKf@robh.at.kernel.org \
    --to=robh@kernel.org \
    --cc=alexandre.ghiti@canonical.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).