Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp531090rdb; Thu, 19 Oct 2023 11:05:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExy8zjoTSwAZCE7LZcGgX3aHZ1ZSx10V5LaBgADwhz7fV1mHh33axDWcGHfbLVxSfEsjfV X-Received: by 2002:a05:6a20:4419:b0:17b:cd83:6555 with SMTP id ce25-20020a056a20441900b0017bcd836555mr1677071pzb.23.1697738747581; Thu, 19 Oct 2023 11:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697738747; cv=none; d=google.com; s=arc-20160816; b=atVNzcdpvXGhitAk7m+4nTF7tTo8gj2bIODUXxO2xI9KRcI50Y0s0OJVcgM03gRgb3 uV8Y9+BtInHsnYxLd+P5qPJ2LUJMzt8CN+IP+fQhm6LwkzrV3ZeIjoxsv0vVSUs+dmaq QWtHpxBHQTCjelaV0W5VUxMP1iVxsvaLdR9RupBV2iC57zrG3GIogvRxZC5a+PKBZIKU 6JHUw7yg4k/ifV7PERXc96tTCCTw4ZlhVg1HhuzR2rfPrY0zwo2PptaajQPGGhCJLZi+ pQN5wxxIcCmB8ZItF2yizWBiiByO8up++e4QiIceJSKuqpozABPRhCE1yTaj25HnCiob HyAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jFz3N6LeFOOVODdL64dwWeQWp+bpB7F4zr/o34e38ik=; fh=yX5j2LCBR2kDg9L44KBnuUFjs92c5dMK1B2OuDt4HM8=; b=zuADz86FZMYduEWFwkq/8+VG5nKS8NUJTxWt8U2GiKh49HzLo9FNTUlxamy0KAHGo6 FaDNjLDqjZLOKkilhFdA2bTSKGO5OK++lF9c9oz0DzLL1HVXClWJO02s5izuNMTDJ4i+ ygle2n6q5kJh6ZlamPMOvaLVVKd7SSDUi2yhxXury1/tASHq9W437UOSR/RvyMhq+VDp 3P0cka1EYa7S+O6Mej2fG7EPmyGR09yVumzK69XDA241Rzbaq95SRmndcCw8e7ut7nB6 mPwM38Q35lhVqk3CBCYoTw1MSVU7AHG4+h+fPuau/Xtbq+oxtIsvR2n9eLRoYLlNicjT R2Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FBweXG01; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o2-20020a17090ac70200b002791d2ce94asi2625805pjt.81.2023.10.19.11.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FBweXG01; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A76F38239E80; Thu, 19 Oct 2023 11:05:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346352AbjJSSFn (ORCPT + 99 others); Thu, 19 Oct 2023 14:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346353AbjJSSFm (ORCPT ); Thu, 19 Oct 2023 14:05:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C087D11D; Thu, 19 Oct 2023 11:05:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5330EC433CA; Thu, 19 Oct 2023 18:05:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697738739; bh=13yt5cryvUi1YLdWtQi3541qTBZX6Xxnaa5Zjb/IhK0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FBweXG01tz7i3yGhEu0rZq9X3fHqysIn62AciqqqNTXgJLPWeTA0KqGLV7NAv4dAG 6phlNA4RBO9tcom4ns5IXNNy+JNzgUjqyjQYx/NgwnEi1oklxKi6sLCG8gtr5+lNCH jXyziYWk4el32e877PCAHSFXEH7eoixVQxEePW9pO2BnOz/WBNtXiJkW3xmhOLOCc5 1OybPsPseRw8gqbnbzyS04USEyT/hwk7WQccCevEbkgj2IEWmEGxllhO2wBxzzxTtb DS9weU2uiT5IFoy4AB7uv3+RAdvd/5yn6fn620OD5zc1EWyOhz0xcWggEWZctJAbw8 ncKbR4aDyRlOg== Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40842752c6eso11782365e9.1; Thu, 19 Oct 2023 11:05:39 -0700 (PDT) X-Gm-Message-State: AOJu0YybPUd5hgq1N23qGQNYpBVI+Q5Qk1EkHPHD6uxc7sLuKlhZtNYE ekl85pZxs6co1Hua3wv3eiLUw17qRJm/zZPTTg== X-Received: by 2002:a19:ad05:0:b0:500:d4d9:25b5 with SMTP id t5-20020a19ad05000000b00500d4d925b5mr2093637lfc.56.1697738717670; Thu, 19 Oct 2023 11:05:17 -0700 (PDT) MIME-Version: 1.0 References: <20231016-dt-net-cleanups-v1-0-a525a090b444@kernel.org> <20231016-dt-net-cleanups-v1-1-a525a090b444@kernel.org> <20231019131806.lbzydoplodybvb62@skbuf> In-Reply-To: <20231019131806.lbzydoplodybvb62@skbuf> From: Rob Herring Date: Thu, 19 Oct 2023 13:05:04 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next 1/8] dt-bindings: net: Add missing (unevaluated|additional)Properties on child node schemas To: Vladimir Oltean Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andrew Lunn , Florian Fainelli , Matthias Brugger , AngeloGioacchino Del Regno , Woojung Huh , UNGLinuxDriver@microchip.com, Linus Walleij , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Geert Uytterhoeven , Magnus Damm , Maxime Ripard , =?UTF-8?B?bsOnIMOcTkFM?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , John Crispin , Gerhard Engleder , Heiner Kallweit , Sergey Shtylyov , Sergei Shtylyov , Justin Chen , Florian Fainelli , Grygorii Strashko , Sekhar Nori , Claudiu Manoil , Alexandre Belloni , Vladimir Oltean , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:05:46 -0700 (PDT) On Thu, Oct 19, 2023 at 8:18=E2=80=AFAM Vladimir Oltean = wrote: > > Hi Rob, > > On Mon, Oct 16, 2023 at 04:44:20PM -0500, Rob Herring wrote: > > Just as unevaluatedProperties or additionalProperties are required at > > the top level of schemas, they should (and will) also be required for > > child node schemas. That ensures only documented properties are > > present for any node. > > > > Add unevaluatedProperties or additionalProperties as appropriate. > > > > Signed-off-by: Rob Herring > > --- > > diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5p= sw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml > > index 833d2f68daa1..ea285ef3e64f 100644 > > --- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml > > +++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml > > @@ -61,17 +61,11 @@ properties: > > > > ethernet-ports: > > type: object > > - properties: > > - '#address-cells': > > - const: 1 > > - '#size-cells': > > - const: 0 > > - > > + additionalProperties: true > > patternProperties: > > "^(ethernet-)?port@[0-4]$": > > type: object > > - description: Ethernet switch ports > > - > > + additionalProperties: true > > properties: > > pcs-handle: > > maxItems: 1 > > For my edification, this patch removes #address-cells and #size-cells > at the same time, because "additionalProperties: true" (which was also > implied before) doesn't care if they aren't defined in this sub-schema, > and they are defined through $ref: dsa.yaml#/$defs/ethernet-ports, > right? Yes, they are ultimately checked via ethernet-switch.yaml which dsa.yaml references. Rob