Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp292567rdb; Thu, 19 Oct 2023 04:59:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErwfqzpuzbJxYKiS668P2vLRxfR5M7JEITlCKT4hXCvF4KdJh/pTsv5aV0FbOOYQyYrCNc X-Received: by 2002:a17:90a:7e89:b0:27d:af4:c8b with SMTP id j9-20020a17090a7e8900b0027d0af40c8bmr1766337pjl.36.1697716749383; Thu, 19 Oct 2023 04:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697716749; cv=none; d=google.com; s=arc-20160816; b=vdLKo6LVBZGc2EZ4oSuZREgDA4JtHv0QU1NtPW+ZOe2srFbHqkOjrzDC76xaPuHHzs s5M7zPt7B1WqBAxXs6VRdQ2DSjA17n/C75s0Dk2OVVoUwllJlhCidQksGjtZCT/tLaIH 4WfczJ8r7LFY7DtxXrAka65W+roKmpV71Yzc8yvdLS7izT+ngYzXzb/HgD/PFy0dKV5m b35tAd99LTle2zclzVE1GVVHlIJRc4E7LuPhhix5ozob6E1BGohiWgy+mTNko0LGJXqn ZlWsDGG6ldpMjBfM3ZiXIeS5ND2C5WQ3S0HBn8LU/zOhis7xCsoTAQTQxxLGxtcRzWlV Dpqg== 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=bLlZb/ECprqBRlyaw7YFlVutOh0E8gfvx4IKbKMJ+dM=; fh=Wh+EHSK7+fvC29y848TYS0sJ9VpZ3nvjA5zRlaaSbos=; b=TjAIrWewK5ZSzmcwgCECFyvUqxJd5Hqyk/+PlKXcRD/ZmVaP1bHiNXimMXQ+YXV+IA MNfaPAvScXJRJqBJenSfA6Gg8zrKJqXpRbQBppUj9WGjlXb+C1etiwQ5o1AbYER27/tD 2Okh3rgcAjDCT3DjGYVraTG+4YHQnMbEZEXK0N8UyytG/HAeXf8ACLz2U1zRaeOFa5/9 vbhdGxd+TKfc9xCpv3c87yUmCMqo1OTmlIiBFSDxi8cRBPdZGbbsT9xrTcKI+Tp/qo8+ 0SAmp9jD5lYu1cGjFVz0dVvJ0KR76xgiRTS+CrVooWiwTdoUblMrrGKYNSt0tYTEQHCr ge5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BiHQUzki; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id pj8-20020a17090b4f4800b002631e44f48csi2053992pjb.179.2023.10.19.04.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 04:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BiHQUzki; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 1C1FC82A5160; Thu, 19 Oct 2023 04:59:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345473AbjJSL66 (ORCPT + 99 others); Thu, 19 Oct 2023 07:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345487AbjJSL6y (ORCPT ); Thu, 19 Oct 2023 07:58:54 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6DBE183 for ; Thu, 19 Oct 2023 04:58:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5F70C433C7; Thu, 19 Oct 2023 11:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697716732; bh=pQ29kk3ro7C4ElFonv3EiTyV06E9AE6VC1caQ8VJxwM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BiHQUzkiiwPx41o8oTijdhqMqEXP1W25W/6P2gxP333hdS1fWElZGUXwcZOFKHvAE cmXg9p1vLYgAgLAP0tWcEU4XVlSaZtjlrl+jJV6sX4fFeL2/dYheIuuDxyReA2yPWK dmnnFSGr4MMGkrX6NWzxT6aimA2DsamgEPvcRhqZ8+AX+gWX0VK8IJ6GmEHVhjaGvb 4stUNkFTprB1mcaYGVqaR0HEx2Rhpqryf1F76igl+q5oeYNRQ0vAtdsKM5vxrnGxok yBgfszESwHukgx/1g2Or0UuShMbAsnnWlya4MgSz/uUxSpN1pg8AdDRYQmSl4ItAq5 cNlksfeV7wqbg== Date: Thu, 19 Oct 2023 12:58:46 +0100 From: Conor Dooley To: "Russell King (Oracle)" Cc: Linus Walleij , Rob Herring , Christian Marangi , Andrew Lunn , Florian Fainelli , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , devicetree@vger.kernel.org, Conor Dooley , Sebastian Hesselbarth , Eric Dumazet , Vladimir Oltean , Rob Herring , netdev@vger.kernel.org, Jakub Kicinski , Paolo Abeni , "David S. Miller" , linux-kernel@vger.kernel.org, Gregory Clement Subject: Re: [PATCH net-next v4 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports Message-ID: <20231019-pulse-autopilot-166bb6c96090@spud> References: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@linaro.org> <20231018-marvell-88e6152-wan-led-v4-1-3ee0c67383be@linaro.org> <169762516670.391804.7528295251386913602.robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Y6vV29njl6hI4/69" Content-Disposition: inline In-Reply-To: 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 morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 04:59:07 -0700 (PDT) --Y6vV29njl6hI4/69 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 19, 2023 at 11:58:49AM +0100, Russell King (Oracle) wrote: > On Wed, Oct 18, 2023 at 01:11:45PM +0200, Linus Walleij wrote: > > On Wed, Oct 18, 2023 at 12:32=E2=80=AFPM Rob Herring = wrote: > > > On Wed, 18 Oct 2023 11:03:40 +0200, Linus Walleij wrote: > >=20 > > > > Bindings using dsa.yaml#/$defs/ethernet-ports specify that > > > > a DSA switch node need to have a ports or ethernet-ports > > > > subnode, and that is actually required, so add requirements > > > > using oneOf. > > > > > > > > Suggested-by: Rob Herring > > > > Signed-off-by: Linus Walleij > > > > --- > > > > Documentation/devicetree/bindings/net/dsa/dsa.yaml | 6 ++++++ > > > > 1 file changed, 6 insertions(+) > > > > > > > > > > My bot found errors running 'make DT_CHECKER_FLAGS=3D-m dt_binding_ch= eck' > > > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > > > > > yamllint warnings/errors: > > > ./Documentation/devicetree/bindings/net/dsa/dsa.yaml:60:7: [warning] = wrong indentation: expected 8 but found 6 (indentation) > > > ./Documentation/devicetree/bindings/net/dsa/dsa.yaml:62:7: [warning] = wrong indentation: expected 8 but found 6 (indentation) > >=20 > > Really? > >=20 > > + oneOf: > > + - required: > > + - ports > > + - required: > > + - ethernet-ports > >=20 > > Two spaces after the oneOf, 2 spaces after a required as usual. > > I don't get it. >=20 > Given the other python errors spat out in Rob's report, I would suggest > that the "bot" is running a development version that hasn't been fully > tested, so anything it spits out is suspect. Maybe Rob can comment on > the validity of the warnings in the report. In this case, I think it is correct. 2 spaces for the oneOf, 2 spaces the start of the required for the nested list, so: oneOf: - required: - ports - required: - ethernet-ports --Y6vV29njl6hI4/69 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTEZ9gAKCRB4tDGHoIJi 0iD0AP9nnypeoKCSb5p1jYVtkd/GxlHX1dmnIRWn/6opBLMHGQD+IqlWgD04icVW jyfkLzfNK6BmN32rgviaunCpTobjLAY= =HyDl -----END PGP SIGNATURE----- --Y6vV29njl6hI4/69--