dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas
Message ID | 20230926164529.102427-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2058522vqu; Tue, 26 Sep 2023 09:55:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOshxkXddPmCcK5Gpk4F44XfRZIHS0EfNcUTNQ0NQjRJ4ftR3BqvObKfd7EHyvp7trIGAG X-Received: by 2002:a67:f319:0:b0:44e:9219:136c with SMTP id p25-20020a67f319000000b0044e9219136cmr6250051vsf.15.1695747322481; Tue, 26 Sep 2023 09:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695747322; cv=none; d=google.com; s=arc-20160816; b=VRqznKN9b8mCZkxrK1S2GKUFYeli7ul6GtFrIpeI2VnN1W9bafnmLLjlAXSP4qSw0v HvgjB0jjCv63zN5VqEmgN5tIhTdhTAk12qpYuOmT/2zuvb4wnTu7izNNIGIjTMHxOzY1 N2TT3rHDUAOpLL1P/TE05OQ1al124YZHAZppPEZ2ymuC8STzEJ/wrVDJDVVxRXWVRwh2 6ZbyVk3f1vCN3e9Ji9DUGdYzu7zpuNiLN+GZ5hy7BeOXKclW6PtUoSTBd3EwGvD6BpZI 0P2WnOnyEt/5AWwfB49McqCxgTOhuHPho1BakWeZDrIQEBKLZIo+lsLtnPHJfAosuJ9p wSyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rHWo5in+GIQTjgI0yRwOHldYupwqxZROdre/ZxecBPI=; fh=SUy43k/odFNaBDbSg5uMYVnwkG+s7QRhXdYqgAb5Vj0=; b=xsnCTTzJw3WTHEUsJDH7cqD4JJ2O6fPH3FkwpWRem6jMNe6iBJaQKpepqHroBYHHbQ uRcJdoTiFXjW8qAsCE5xUx+FQvs+UgR/dM2ljHlnYWgWugCIbIKOJONBxS0oZW8HGFCr gv1RlJfycoaEzoU+15YDKecn6z7AsAInwQAKth8LseIqr4SgbTa8FItbUVOacHdS3fKq MnM9Xl3I+zs3uzhVb4/ARtFsTIhTQM8Anhizc7SbG8yfdEgUeuesbNea6dnD+phaeHhW 6KGOcaSNb4mhgZSxvjPo0ystUa/k8jhYmicYF43PqRGFhXgWfNPVXZlZJB9Bglalx7dW iDLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NdCFrlkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u11-20020a6540cb000000b005775e17f552si12358864pgp.249.2023.09.26.09.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NdCFrlkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 9DF8780258A4; Tue, 26 Sep 2023 09:46:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235377AbjIZQpw (ORCPT <rfc822;pwkd43@gmail.com> + 28 others); Tue, 26 Sep 2023 12:45:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235376AbjIZQpt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 26 Sep 2023 12:45:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BED3E1AB for <linux-kernel@vger.kernel.org>; Tue, 26 Sep 2023 09:45:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8626C433C8; Tue, 26 Sep 2023 16:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695746742; bh=aLLqkdKFCxYcXITRkqjnjOM4U5KU00Rw+HhFRqy0ov0=; h=From:To:Cc:Subject:Date:From; b=NdCFrlkgfWfiMlPk83uqy45Vrb9+sQxddQSbpd9jnPWw+FcwGE9rVML7eU3aZb+Jm NYsgPUKVl9eRoCYDsSDt/ZHteAqW4BzDvBuvwlMal/DbwPt1tBeOwn//8WozUBOFxz mSMFmlggL3k7k2lAJMVq4GDAVRKf9fJqD3Iqz7pvDwdN2skzTB08WNXBNMs81o5Wha R9EFGdqY1uxTci6c84UevqJJauz9xYs/djLmESlIZwmIDirZWmn9ZpbZL77bY18SVo okdC9gV/5iKpcpjphy4DWvkt6L5JEx7rEv1xFU2xmrIJYQKWvs5EgvIjpT/cf6fWQg E4r+/8Ftm/yMQ== Received: (nullmailer pid 102861 invoked by uid 1000); Tue, 26 Sep 2023 16:45:40 -0000 From: Rob Herring <robh@kernel.org> To: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <rafal@milecki.pl>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas Date: Tue, 26 Sep 2023 11:45:25 -0500 Message-Id: <20230926164529.102427-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:46:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778119944775370150 X-GMAIL-MSGID: 1778119944775370150 |
Series |
dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas
|
|
Commit Message
Rob Herring
Sept. 26, 2023, 4:45 p.m. UTC
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.
Signed-off-by: Rob Herring <robh@kernel.org>
---
Documentation/devicetree/bindings/nvmem/u-boot,env.yaml | 2 ++
1 file changed, 2 insertions(+)
Comments
On Tue, Sep 26, 2023 at 11:45:25AM -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. > > Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Thanks, Conor.
On 2023-09-26 18:45, 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. > > Signed-off-by: Rob Herring <robh@kernel.org> Thanks! Acked-by: Rafał Miłecki <rafal@milecki.pl>
On Tue, 26 Sep 2023 11:45:25 -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. > > Applied, thanks! [1/1] dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas commit: 8beb2ec54b65eb08891c9b9c23428712d46d8e15 Best regards,
diff --git a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml index 36d97fb87865..9c36afc7084b 100644 --- a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml +++ b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml @@ -51,6 +51,8 @@ properties: ethaddr: type: object description: Ethernet interfaces base MAC address. + additionalProperties: false + properties: "#nvmem-cell-cells": description: The first argument is a MAC address offset.