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, Icenowy Zheng <uwu@icenowy.me>,
	Han Gao <rabenda.cn@gmail.com>
Subject: Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties
Date: Tue, 24 Nov 2026 18:16:53 +0000	[thread overview]
Message-ID: <20261124-rehab-overlord-9b7f44ee7e0f@spud> (raw)
In-Reply-To: <20261124-vl817-uneval-prop-v1-1-137c093fb300@iscas.ac.cn>

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

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.

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.

> 
> 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-24 18:16 UTC|newest]

Thread overview: 6+ 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 [this message]
2026-11-24 19:32     ` Icenowy Zheng
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=20261124-rehab-overlord-9b7f44ee7e0f@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=uwu@icenowy.me \
    --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®