Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp940016rdb; Fri, 20 Oct 2023 04:11:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCvn5AzRbYi9XFTh00c7z2oE5SAWX2dHadBeoiAQTLMHl3LkwqlGtgZ+iIw1Hc88/FVPkM X-Received: by 2002:a05:6a20:2d1e:b0:160:c1b9:a759 with SMTP id g30-20020a056a202d1e00b00160c1b9a759mr1679437pzl.20.1697800278337; Fri, 20 Oct 2023 04:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697800278; cv=none; d=google.com; s=arc-20160816; b=UdtM+MjtvPQvV5iioXi9l0wka15TYRlDmKQNdmd0AwruKIBtR40ik1STHaW47mVtD3 62UoTbKyDaKI7kNEJHUEIiRUvi9QWl9JfhQJ7p3L8qRlcFE0C6XAfx3T9o64vTg93glp i5QVoopBms2CkXaLvGN3LRShGFUT6GbdzhEtZ4hZPNUCb0S0pj/RVNtQXSSYagIGWKro hz1yx1avQm0Rqdfdz9htx99QbC7++PlsDlX0pEFCruKGZt5Bm63oiaGrNAKFLzsrYFez RTIEnbxGFrJcwMyuqonogOdxBMJ2/V4N5vvpL6J7SHw2EHvQzH8OwIpm1g2mwap74dsG pXvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=UG+PVmid3Mo6+0CvXodjlEjuponhPh1fREwsE8Af67A=; fh=bblwc9gTh+aYfMuTJEi+mX4YUTMlME3BfRSv/ULebqc=; b=XauH23uAmsN/yZPuZdFZotT9sjZGvJbfOs7xT5MD6HB82WcrbCr+OVnueFd/Hq9DHB DuPJDeX3aZM7RuqVJPUf12N7iioMV3w/zuhsLTYHeRVwhemIuviQhr+IkM7PJ6c983NV oRmhuQQWx40GY7B0wpUDGvGDzwNKBm2yfqwqAh23ciJPuJcddzrXRLDLTCCRCN6NUJBI qaNTysiclHg0Kb6ftTrF39G/AYkkpLN0RJXE/K4CesbyLS8vFe9juEwQAo5W4kaogLwV Rv2gysFJw0Gi8IxXCxMtEVbRiNhQPLtDSHvtV1yauPz2SbXt1M6Hv4bxnBNkyo1cBVA/ h/nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nCQaw9sR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i5-20020a633c45000000b00574166b7d34si1597552pgn.881.2023.10.20.04.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 04:11:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nCQaw9sR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3848C80226A7; Fri, 20 Oct 2023 04:10:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376953AbjJTLKv (ORCPT + 99 others); Fri, 20 Oct 2023 07:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376927AbjJTLKt (ORCPT ); Fri, 20 Oct 2023 07:10:49 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BD5124 for ; Fri, 20 Oct 2023 04:10:46 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-53e3e7e478bso1006361a12.0 for ; Fri, 20 Oct 2023 04:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697800245; x=1698405045; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UG+PVmid3Mo6+0CvXodjlEjuponhPh1fREwsE8Af67A=; b=nCQaw9sRzKTFrvvDVmzq2rI9yAJm4Ufd9xziuKUHWeeileOUrd0Nr1RdB4aW0/JwsP M6c2+V64ubiIncKQrTKYL4JBmswJMun8ctADOFKUvsh+Y8PiYH4WbnNuy0Vr/HTxMxBC xz5AaBCZ6abqlvfRGnO+7rxF1/GB0R9/fCuX4VgrUuBhGKbH+4yPg6mk+od5J59IbgDs I26yAguv3nFyxm1lxLpLpiQgjWeH/488feSsw7N/TqAiyGmlGarxgngqYycEg/o9ZT5l 8F7fHW02lag+jK3MHDB9zWIeGcxUGZ7bCW5bdGctLJw4Du9UJj0tGV0EbyWYHM2ObjMP w4iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697800245; x=1698405045; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UG+PVmid3Mo6+0CvXodjlEjuponhPh1fREwsE8Af67A=; b=QAEvB8XLLqzDWL+E1DbqmrzPbPDmiJ9NZaLNaddFvQUljkgxVCm7QnTMf65PEKWJR4 DzGQAfm0sneJlY4S4q2jiDyzSzL7h8xhzfu/PB4VgbFfMNwY3zdSLyhQMPx84UqKh6MW k7vCzn8VAcUn+S1/9sJKzZ7uBhjUPHQk+8PGzOQi15bRlhsMdZx2pu0X3qxmymuBtqfR ON+JaezSTmp5GFhX0KicvTJHB3L3CHQkjqc3/zrmZNIzYvEynSMVOkbBHELWREjNmI9g hDvFCNrFD2nKHYjhYzXvOTmHCNg7fYuUO8qcwgI89dG6dJGQ44WaPEukgL/kBdWYK08S BaxA== X-Gm-Message-State: AOJu0YwHAcXU1T71A/BlWZfxd0aHQDJY+Cd3xLSJrvtszWdPwamuyec2 r0BMD2nx4kYyDQrH6aLMosuDFg== X-Received: by 2002:a05:6402:1d48:b0:53d:d8ad:4d46 with SMTP id dz8-20020a0564021d4800b0053dd8ad4d46mr1763127edb.36.1697800245047; Fri, 20 Oct 2023 04:10:45 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id a16-20020aa7cf10000000b0053ecef8786asm1230075edy.75.2023.10.20.04.10.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Oct 2023 04:10:44 -0700 (PDT) Message-ID: Date: Fri, 20 Oct 2023 13:10:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v4 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports Content-Language: en-US To: Linus Walleij , Rob Herring Cc: Christian Marangi , Andrew Lunn , Florian Fainelli , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Russell King , 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 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> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4ky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UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 20 Oct 2023 04:10:57 -0700 (PDT) On 18/10/2023 13:11, Linus Walleij wrote: > On Wed, Oct 18, 2023 at 12:32 PM Rob Herring wrote: >> On Wed, 18 Oct 2023 11:03:40 +0200, Linus Walleij wrote: > >>> 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=-m dt_binding_check' >> 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) > > Really? > > + oneOf: > + - required: > + - ports .........^ here > + - required: > + - ethernet-ports > > Two spaces after the oneOf, 2 spaces after a required as usual. > I don't get it. Although YAML accepts your indentation, yamllint does not and we always, always, expected yamllint flavor of syntax. Best regards, Krzysztof