All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: Ninad Naik <ninadnaik07@gmail.com>,
	linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
	lee@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema
Date: Thu, 16 Jul 2026 12:39:39 -0500	[thread overview]
Message-ID: <20260716173939.GB534222-robh@kernel.org> (raw)
In-Reply-To: <20260701180553.473121F000E9@smtp.kernel.org>

On Wed, Jul 01, 2026 at 06:05:52PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] The schema conversion incorrectly restricts LED child node names to `^led(-[0-9a-z]+)?$`, which breaks `dtbs_check` validation for all existing upstream device trees using this binding.
> --
> 
> commit 6c59295f22b17d02a2b26847db54458f820fa4f3
> Author: Ninad Naik <ninadnaik07@gmail.com>
> 
> dt-bindings: leds: lacie,ns2-leds: Convert to DT schema
> 
> Convert lacie,ns2-leds to DT schema.
> 
> > diff --git a/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml b/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml
> > new file mode 100644
> > index 0000000000000..679a618906d80
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml
> > @@ -0,0 +1,87 @@
> [ ... ]
> > +properties:
> > +  compatible:
> > +    const: lacie,ns2-leds
> > +
> > +patternProperties:
> > +  "^led(-[0-9a-z]+)?$":
> 
> [Severity: Low]
> Will this restrictive regex cause existing device trees to fail dtbs_check?
> 
> The old text binding example used a child node named blue-sata, which does
> not match this pattern. Since additionalProperties is set to false below,
> nodes in existing device trees that don't start with led will be rejected
> during validation.
> 
> Should this regex be relaxed to allow existing node names, or should those
> device tree files be updated alongside this conversion?

While yes we prefer what you did, it's perhaps not worth changing these 
old .dts files to match the preference.

Rob

  reply	other threads:[~2026-07-16 17:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-01 17:53 [PATCH] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema Ninad Naik
2026-07-01 18:05 ` sashiko-bot
2026-07-16 17:39   ` Rob Herring [this message]
2026-07-16 17:35 ` Rob Herring

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=20260716173939.GB534222-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=ninadnaik07@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.