mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Matthias Kaehlcke <mka@chromium.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Anand Moon <linux.amoon@gmail.com>,
	linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Han Gao <rabenda.cn@gmail.com>
Subject: Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties
Date: Wed, 25 Nov 2026 18:23:52 +0000	[thread overview]
Message-ID: <20261125-savings-stung-e41cfcdc7842@spud> (raw)
In-Reply-To: <f818f0facb3af35e31b8346546c1aa23b10bd529.camel@iscas.ac.cn>

[-- Attachment #1: Type: text/plain, Size: 2485 bytes --]

On Wed, Nov 25, 2026 at 03:32:10AM +0800, Icenowy Zheng wrote:
> 在 2026-11-24二的 18:16 +0000,Conor Dooley写道:
> > On Tue, Nov 24, 2026 at 04:31:01PM +0800, Icenowy Zheng wrote:
> > > Currently the VL817 binding has additionalProperties set to false
> > > instead of unevaluatedProperties, which disallows properties documented
> > > in the parent schema.
> > 
> > This is not quite true though, they're permitted if the binding contains
> > "foo: true" etc - which this one does.
> > 
> > > Change it to unevaluatedProperties, which is the better practice for
> > > derived schemas.
> > 
> > Not really, it's fine to do addtionalProps: false + foo: true if only
> > a subset of the inherited properties are valid.
> 
> The main meaning here is to allow downstream nodes described in the usb-
> hub.yaml file, especially downstream device nodes (which was a regular
> expression match in usb-hub.yaml).
> 
> I don't think it wise to duplicate that regular expression in all hub
> binding files.
> 
> However maybe I should change the commit message?

Please, and include the reason you've given here.

> > IMO this series should be two patches, or maybe even just one that
> > changes the ref (as your patch 2 does) and sets the then derived
> > property to true. Otherwise, this should be two patches, with patch 3
> > split into whichever of patch 1 and 2 is relevant.
> 
> I'm okay to just drop patch 3; in fact I send it as a split patch just
> because I'm feeling that it's not so needed.
> 
> In addtion I'm also okay to squash patch 1 and 2.

Yeah, you can probably just do the whole thing in one go.

> 
> Thanks,
> Icenowy
> 
> > 
> > > 
> > > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > > ---
> > >  Documentation/devicetree/bindings/usb/vialab,vl817.yaml | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
> > > index c815010ba9c2e..d0484e48e319c 100644
> > > --- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
> > > +++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
> > > @@ -40,7 +40,7 @@ required:
> > >    - vdd-supply
> > >    - peer-hub
> > >  
> > > -additionalProperties: false
> > > +unevaluatedProperties: false
> > >  
> > >  examples:
> > >    - |
> > > 
> > > -- 
> > > 2.56.0
> > > 
> > > 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-11-25 18:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  8:31 [PATCH 0/3] dt-bindings: usb: vialab,vl817: reparent to usb-hub.yaml Icenowy Zheng
2026-11-24  8:31 ` [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties Icenowy Zheng
2026-11-24 18:16   ` Conor Dooley
2026-11-24 19:32     ` Icenowy Zheng
2026-11-25 18:23       ` Conor Dooley [this message]
2026-11-24  8:31 ` [PATCH 2/3] dt-bindings: usb: vialab,vl817: derive from usb-hub.yaml Icenowy Zheng
2026-11-24  8:31 ` [PATCH 3/3] dt-bindings: usb: vialab,vl817: deduplicate properties in usb-hub.yaml Icenowy Zheng

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=20261125-savings-stung-e41cfcdc7842@spud \
    --to=conor@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux.amoon@gmail.com \
    --cc=mka@chromium.org \
    --cc=rabenda.cn@gmail.com \
    --cc=robh@kernel.org \
    --cc=zhengxingda@iscas.ac.cn \
    /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

all inboxes | Powered by JetHome®