Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp960704rdb; Fri, 20 Oct 2023 04:53:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXdAM+ap8BdJ0N3DPefdnIJ6CJJ40/t689RgVfh05r8A4E8coC3nJd8UsWlMIiFWxjtsNZ X-Received: by 2002:a05:6a20:6a24:b0:15e:b253:269f with SMTP id p36-20020a056a206a2400b0015eb253269fmr2052187pzk.28.1697802826935; Fri, 20 Oct 2023 04:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697802826; cv=none; d=google.com; s=arc-20160816; b=n0eCz+UZ34W/d/hGD6hQ90IuFxCn0bxp4vkNeKaS370ycACBtNhH6g5qdzJbsmS25+ Tcyeqf/GYqlZpeGwJhq2ZkGvbnqZSEH6IJJF/zvEGHBgqPxX4u9wtJsEgNykLLDJnFb0 A8FcV7j1zN7X6nIZjxmP2En1bpuLZtPdqbtb/b2A4GRXWRBj4kYYRg5T5/HkXAl9LKnn lXM1zm0ilyu/Kv0oC+lE8uY0/Bj9RyYQ8wXxwMkrRcRh5x//qhh+NhI9UisEaDzpXaIw MWfZhJ+FORE05P+7tMFve1cXyXB4RTpjlWJaLVKRRq9VCSWh6LIxpRVdu2Te+WSUWFYq aD6w== 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=J9bFjh5A1TAJojJW7zz66RNNSkHFaHMwwCUObsG9YEY=; fh=N+o0SNHAL/PwUqjrXzYpvlAH9Dom22ZdWj6yrbiM7+E=; b=FuXGg/ydi7+si5/ESf1ly6WyZ97WP+CngchZNvaSOLAusZ1x5zUMyZjNzDKvjBrNx7 Tx4NG3ARJMGvF9Tzp1M9kawalyYGcArTBqlrSKoMHRIagoa4jgXeUHszDjWmBFP/G2Qo /3bA9Y96318M7MgW7YLdTuOsaILgYjvlGzSqejUd+NULkZt4vy67bW0SSBJz/43Z1IFo JI49+C6AerCLlc4Fd5B9KG3qzTiOZ/hA42hIerwGF0KbpmCtthhSuAEgYixo+V3TrV1r kx5GomdzTMEFEDzLVQVYPDvEW+4NfbMC5xJ944Kn7c4LxflMZZK7WgYOwcRvKeCRKw30 Q5eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JUeISjOp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x189-20020a6386c6000000b005b7364d5dbfsi1684022pgd.49.2023.10.20.04.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 04:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JUeISjOp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 0E36283FC39C; Fri, 20 Oct 2023 04:53:43 -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 S1377114AbjJTLxg (ORCPT + 99 others); Fri, 20 Oct 2023 07:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377257AbjJTLxZ (ORCPT ); Fri, 20 Oct 2023 07:53:25 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3D4349F0 for ; Fri, 20 Oct 2023 04:41:39 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5a8628e54d4so6421107b3.0 for ; Fri, 20 Oct 2023 04:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697802095; x=1698406895; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=J9bFjh5A1TAJojJW7zz66RNNSkHFaHMwwCUObsG9YEY=; b=JUeISjOp5CJHSK1LLZ3b/u3mYHgZxPngvU03BRjZmiFfCPp6/xz+gLqFakwrBql5Za 020cR5pMnki2DOfExiPXmpv3lv8HSVYiwi2E9eLlzkec4HsNE8fU1xl+ZWpu5sKG0BLq bbzD4fhC20QOC77PiZGXqaTKnBomR6PyQFHcWZ8sAx9J7AZTg0tEKve1VJJmWyErG/7r 6tTNiiI0MNDwLXVdt787JgD6SN4P7kFbKCY54330XpOhxvfC9iGWeaK1A32QiMEYXdlf oISaiyG7M4YFqa46ykaCjXmgWCjGTgspaWcd7uQAcik+NiUqbWwFnwqI9XwpDgtPSfZ7 uOyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697802095; x=1698406895; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J9bFjh5A1TAJojJW7zz66RNNSkHFaHMwwCUObsG9YEY=; b=HeUEWPBypINoI4X1CCL4fpynch90oqJuPPOpUIemsbZfK+MNl9H6Zu5j6h7PiIkm9M qmwqLt63UXKNAwv/BVI3JbfW+2gH8GZQTDfz9eUybcqZykeBiH9jIHThbnnX5vJ8lDS/ MVyy3t8OQb0S/hOCCZGOJ9xhpF1hUsNQ7iiXG3eVc6XBmocUZr+Siqm+TGCL20XCCnIm KvUho09ToWotCziiVweXXEhBtD4wWHHwc9N94q2IOYVCA+Css3XYjF54yv3yap8x2K1T eWjEu5J3vFubYQOzyEtFh6ZfjHROy+EBk3n5ZUVJmppAcnrWCjz+BTd3GZZJfXIgu+1j QOWw== X-Gm-Message-State: AOJu0Yxh/NY5A7tRZYnHg1FepFPZ8DoGw3qrO800BbT/88EEMIPjmhy9 6ms5E+la2rYeJsXjPzjqBW1Z7lHHm8lyQEICeJBs7A== X-Received: by 2002:a05:690c:dcb:b0:5a7:cb5f:ee0a with SMTP id db11-20020a05690c0dcb00b005a7cb5fee0amr1391397ywb.17.1697802094778; Fri, 20 Oct 2023 04:41:34 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Linus Walleij Date: Fri, 20 Oct 2023 13:41:22 +0200 Message-ID: Subject: Re: [PATCH net-next v4 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports To: Krzysztof Kozlowski Cc: Rob Herring , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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]); Fri, 20 Oct 2023 04:53:43 -0700 (PDT) On Fri, Oct 20, 2023 at 1:10=E2=80=AFPM Krzysztof Kozlowski wrote: > On 18/10/2023 13:11, 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: > >> yamllint warnings/errors: > >> ./Documentation/devicetree/bindings/net/dsa/dsa.yaml:60:7: [warning] w= rong indentation: expected 8 but found 6 (indentation) > >> ./Documentation/devicetree/bindings/net/dsa/dsa.yaml:62:7: [warning] w= rong 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. That's chill, however I can't reproduce this, make dt_bindings_check in the mainline kernel does not yield this warning (after pip install --upgrade --user dtschema and yamllint is installed and all), so right now my only way of testing thi= s patch is to mail it to the mailing list and have it tested by Rob's bot. I just don't understand what I'm supposed to do... drop the dash-space "- "= in front of "- ports"? Then the bot will be happy? (This patch was added in response to Rob's comments "this should probably be in dsa.yaml".) We can also just drop the patch if this whole thing upsets the tooling, it'= s just intended as a generalization of this requirement as can be seen in Documentation/devicetree/bindings/net/dsa/qca8k.yaml which in turn can do that because it is not using the generic def. Yours, Linus Walleij