Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1874669rdh; Tue, 26 Sep 2023 06:16:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdahbmSPl3K57M6jJWyX/hX16Tgd0Iiu8T0ryWTjlOrDxgoU5p2AqViWcc3isQ7e6K43ru X-Received: by 2002:a05:6a20:101a:b0:14c:4deb:3dc4 with SMTP id gs26-20020a056a20101a00b0014c4deb3dc4mr8948936pzc.31.1695734199966; Tue, 26 Sep 2023 06:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695734199; cv=none; d=google.com; s=arc-20160816; b=ziTm5R6xO/oxrkrC+Y9LM4aMAqTgFVu1vfbRLOxEKMxhFIx1goZMgEv4ayslD2tfmQ ryeEsk/kbQa0lis+BIvYsDa+qNOL232Ie7cOfhWIG8C0jB1VDUhW++PRJRKKupPinSPl kuAJxMZp9zMC4y+tP80zLT1hLkb5vqa/yquM4pUDl7N5MZnKkdgsbdMedyzB5FhFGo8U L3dvwd2vydK5iGVWz7AM7VV6KSLbsUwmaz0y5piJwwf9At7Zypj0JlQsMynuEUsmywU8 PZ0cqT7rGtZhxET/9ge9BmY70d3YgaivIxM9YHkhfKVd0pkVMV90W9VeSZTvLc2LGUUM 7O+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RwnyhVTDI7Z3gTGZFM4sDrSeBBHHCUKHr3J5wwvdh3g=; fh=9nUbOn97Gec18mhU16LeBBuvj4dyri3CKzX5p7Y9Vcc=; b=ab56DNFemzGtWrjkdwydwCj/cxDHpDAnP+4PXj/xjgWCdTKfpvZ2oaru3oJEx6aw2g J1H67MdOv3ktRD9zmfiN5XzMUWVmNNp7AqDHZ/8os48Ei/TtndY9qjM6GT/jO+11223i OTJnCeckNuj7NjwITN6S9FPSvThx4hBClV/C3gwQOFVNsGCkyBBLzrOkigfGPT3YrYuq L7rwc2WW0oUZIKLFZlD+sQ9zwsGW7PqNwAV8LpIe3Gtb5E+aZ5uUPjC3XZY3PLFOeWXf 485lttCyAuoYKoTT9JyHTOZQ8EAw/oYCciTDd+BhCGOsJe7GgEiRgWFXodXykB45/+fL 4h/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LsTkHnL+; 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 w8-20020a056a0014c800b0068fcb779a3esi13022273pfu.278.2023.09.26.06.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:16:39 -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=LsTkHnL+; 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 C2D9A812D232; Tue, 26 Sep 2023 06:06:36 -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 S234735AbjIZNGk (ORCPT + 99 others); Tue, 26 Sep 2023 09:06:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233006AbjIZNGi (ORCPT ); Tue, 26 Sep 2023 09:06:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93E32F3 for ; Tue, 26 Sep 2023 06:06:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05736C433C8; Tue, 26 Sep 2023 13:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695733591; bh=nj7Pno7gxKRpYeFnO5r1L7tRE2na9od26GJPA9cmoRY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LsTkHnL+6Gku6jK1CrWtDSHYgBlZFoUkeW85VJlnCA2VJfgl+VdLRc1KdBwA3ddze GnvDYhB+gobdJsh2F9tLYu6jFTKL4t9FvI+d2NuWIJNOj4OeMtD0FfPIoQRCm4PY7l AeNDe2d/BANbs941hh7vjo32zrGFxelZzKkzbUlnVQyD8FJt641HPC441YFKrF9A7K c0EeNsL7xLQG6A72wQ2zRk3ujrUCH86Tv2yw0GQ2OmJKXKe9DiAZMz6RcSkO5HAhfV s7wOluArGcS6ljG5riOpXja14UG0qj2MQTQPlq1Oi02n+8xZkVUlKVQky0P4UnSz/B baLx3rZxaRD0w== Date: Tue, 26 Sep 2023 14:06:25 +0100 From: Conor Dooley To: Rob Herring Cc: Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Herve Codina , Shenghao Ding , Kevin Lu , Baojun Xu , David Rau , Damien Horsley , Geert Uytterhoeven , Kuninori Morimoto , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] ASoC: dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas Message-ID: <20230926-freewill-treachery-81fb636e537e@spud> References: <20230925220947.2031536-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pRkokaTksUJ87J4L" Content-Disposition: inline In-Reply-To: <20230925220947.2031536-1-robh@kernel.org> 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]); Tue, 26 Sep 2023 06:06:37 -0700 (PDT) --pRkokaTksUJ87J4L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 25, 2023 at 05:09:28PM -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. >=20 > Add unevaluatedProperties or additionalProperties as appropriate. >=20 > Signed-off-by: Rob Herring Acked-by: Conor Dooley Thanks, Conor. > --- > Documentation/devicetree/bindings/sound/dialog,da7219.yaml | 1 + > Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml | 1 + > Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml | 1 + > 3 files changed, 3 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/sound/dialog,da7219.yaml b= /Documentation/devicetree/bindings/sound/dialog,da7219.yaml > index eb7d219e2c86..19137abdba3e 100644 > --- a/Documentation/devicetree/bindings/sound/dialog,da7219.yaml > +++ b/Documentation/devicetree/bindings/sound/dialog,da7219.yaml > @@ -89,6 +89,7 @@ properties: > =20 > da7219_aad: > type: object > + additionalProperties: false > description: > Configuration of advanced accessory detection. > properties: > diff --git a/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml b= /Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml > index ff5cd9241941..b522ed7dcc51 100644 > --- a/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml > +++ b/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml > @@ -33,6 +33,7 @@ patternProperties: > description: > A DAI managed by this controller > type: object > + additionalProperties: false > =20 > properties: > reg: > diff --git a/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml b/D= ocumentation/devicetree/bindings/sound/ti,pcm3168a.yaml > index b6a4360ab845..0b4f003989a4 100644 > --- a/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml > +++ b/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml > @@ -60,6 +60,7 @@ properties: > =20 > ports: > $ref: audio-graph-port.yaml#/definitions/port-base > + unevaluatedProperties: false > properties: > port@0: > $ref: audio-graph-port.yaml# > --=20 > 2.40.1 >=20 --pRkokaTksUJ87J4L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRLXUQAKCRB4tDGHoIJi 0pghAP9+4AC2NOyTDvOOxue9O55ySqsVJ7XyGO5vj0hDxz+4vAD+JR0pthP9HqDu s11/vLsHj4O2ke1qIBfFm69Uq5wWhgo= =vDBg -----END PGP SIGNATURE----- --pRkokaTksUJ87J4L--