From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=159.226.251.81 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795548748; b=q5BANTyg/ns63MhIzEYxBKStgC5cx4SfVfSYsWjPZgL+wxfnC/axii0FZW0F+tZZ9euy n6Va5Oh15rmxOnPIzeIDAvLA5xSOoAPZQmx0HvGAWFLaXzS5cXUHyspVaABUDHz7gr9zJ bnz9pbMssLEpTFjeCXCiOfVoU037lOLUFWDqWHqghCVyVjJznlratoun2qFxu7EbPpuCG XfSQ6pkMOiwdDqFebKJLNaXADkokPDGrKctPxoTIA+vTPDHVqXyHg+zRWg2Ep4VwpxHob jFUMVl7dE9LYd2w3SpDaZ6EfYG2GaxHporTtSceEIM3yw3/7hlcQXhRHPSBs2Sn8JIQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795548748; h=DMARC-Filter:Received:Message-ID:Subject:From:To:Cc:Date:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:User-Agent: MIME-Version:X-CM-TRANSID:X-Coremail-Antispam:X-Originating-IP: X-CM-SenderInfo; bh=yd/6hanBXf9zEhrdANGKjJeIsJ0EIDRqYpFyzs8Z3FY=; b=BK/YVsInIulHwGIgNVrh5fy40jpZXgv8qIrxus5/JjC9Ox9Krc3rlSIE9wbVNvOiv3o6 l2eCJ4qzamkoCIDNK6koYH74PLcPyFvn0ANk9IqcCrD9lWyMddJnh6Kxm01xKhzM6INrY Gm8kAFT3T3ZacOPY7R8ME+v7NcAA183+0Ds7OFejvAxwI0WeviZRvq0WzhlmvNv4NhjyM Ig4HEUVYNKGc+4/vrDeWx7ISlllqEBFJDU4QVvq3ojzrolZIF/6OC66HxSapSg/CsfgB2 aoiilZTz0yQ58yZyYiiVXrF7uJe9a5L8WX8F0ntS9KNFlLl6ox1SYi9GN12/dGdbBug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=iscas.ac.cn; spf=pass smtp.mailfrom=iscas.ac.cn; arc=none smtp.remote-ip=159.226.251.81 Received: from cstnet.cn (smtp81.cstnet.cn [159.226.251.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE2EF606A329; Tue, 24 Nov 2026 19:32:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EE2EF606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iscas.ac.cn Received: from edelgard.fodlan.icenowy.me (unknown [112.94.102.207]) by APP-03 (Coremail) with SMTP id rQCowABHGZo65gVrD7C3AQ--.17886S2; Wed, 25 Nov 2026 03:32:12 +0800 (CST) Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties From: Icenowy Zheng To: Conor Dooley Cc: Greg Kroah-Hartman , Matthias Kaehlcke , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Anand Moon , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Han Gao Date: Wed, 25 Nov 2026 03:32:10 +0800 In-Reply-To: <20261124-rehab-overlord-9b7f44ee7e0f@spud> References: <20261124-vl817-uneval-prop-v1-0-137c093fb300@iscas.ac.cn> <20261124-vl817-uneval-prop-v1-1-137c093fb300@iscas.ac.cn> <20261124-rehab-overlord-9b7f44ee7e0f@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-CM-TRANS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jvj DU0xZFpf9x07betCcUUUUU= X-CM-SenderInfo: x2kh0wp0lqwv3d6l2u1dvotugofq/ =E5=9C=A8 2026-11-24=E4=BA=8C=E7=9A=84 18:16 +0000=EF=BC=8CConor Dooley=E5= =86=99=E9=81=93=EF=BC=9A > 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. >=20 > This is not quite true though, they're permitted if the binding contains > "foo: true" etc - which this one does. >=20 > > Change it to unevaluatedProperties, which is the better practice for > > derived schemas. >=20 > 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? >=20 > 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. Thanks, Icenowy >=20 > >=20 > > Signed-off-by: Icenowy Zheng > > --- > > Documentation/devicetree/bindings/usb/vialab,vl817.yaml | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > 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 > > =20 > > -additionalProperties: false > > +unevaluatedProperties: false > > =20 > > examples: > > - | > >=20 > > --=20 > > 2.56.0 > >=20 > >=20