Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3717917rdg; Wed, 18 Oct 2023 04:12:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG37f3TDFD/7IHK3fbVhoGdNp2f/xoNLKnbXC9S16up75nIlmURWKFugSmdMOd/54Y7UhGX X-Received: by 2002:a05:6359:1a95:b0:166:d4d1:88c0 with SMTP id rv21-20020a0563591a9500b00166d4d188c0mr4912222rwb.22.1697627527185; Wed, 18 Oct 2023 04:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697627527; cv=none; d=google.com; s=arc-20160816; b=Zua9ZajG7HdROfwqOeHJVKeXTUhvuFqd25fBrcVt8slBuP8wHUb0koUg/F3CX+WrYc w1a8d5PuFATnhsUff2tTsiYSgivoTBAUviLSyKzeAwiXoPN5E8rhxJEQXqKQ9LXAek0Z n333y617mhPWbkj5CgAVS4Zi1NsVDnl6XQI5s7CmVxNS186ef3VyuHc4P6+cu5OkiwFU +sPY5NIS+VH7WntkZF3h2tgV1eMUL8O6+ySKgEtT1XgUHxDKad/zWrmNEEej3ixyKwli Y7165RKKWjdA0lLb+7FXMzccOlzqDQfuYmyPjBDkejGOd0r1e39mRSjg3XDJZSTcMDH7 dN7w== 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=NO/PDoCfvCIQp8CUhsVVtzA3USwqbfuZSWYXmX0vX4k=; fh=zYVrWOi2f5u5sk8Swb1zZKoD+LPLlD0IQYnW5VKXmxs=; b=dD8PX74WnZ3SScelcjSihisj8lr2JIF5sTRgQQQjzzkqBXnqPLVPA9iG7RngwaUX5a 72In6Qm0VDu9K+74u9GzpQDLyzNVQz6mheexJA+XMNnZyyJ/hB7PsPlgyqHCthyezhHe Tprm4d+oflZFjVbgrvL/yzZHug7OZpsRixNb5iqrnPNiF68C6ruk9UJAMVEe3QVoZzQ1 oV+XRZQB1AU7g6MQDqUWHJjf6pHGXgX1sHWA5zzxchYSW1jdbctY13EqOjDkY8ehq+hz Uw2kFrtXx332AmJiqTfd/cwnI7hjZEtHU271H9osDJpIMBKYpKjzKMW6366jhgS1vaay YcJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NdUqHgTh; 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=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y18-20020a056a00191200b006baae7ecfacsi3885937pfi.308.2023.10.18.04.12.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:12:07 -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=@linaro.org header.s=google header.b=NdUqHgTh; 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=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4A9281393D7; Wed, 18 Oct 2023 04:12:05 -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 S230048AbjJRLMC (ORCPT + 99 others); Wed, 18 Oct 2023 07:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjJRLMA (ORCPT ); Wed, 18 Oct 2023 07:12:00 -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 9967910F for ; Wed, 18 Oct 2023 04:11:58 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5a7c93507d5so79653187b3.2 for ; Wed, 18 Oct 2023 04:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697627518; x=1698232318; 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=NO/PDoCfvCIQp8CUhsVVtzA3USwqbfuZSWYXmX0vX4k=; b=NdUqHgThFaSS6CRiu320pMsNt8v76A9IMR56kWxn6XxfWZKQlYBE/3cmIhmnFqZa/M 76MExfEnETGwcB0CZMzHlF5OPx3aQBSFLiJP+hOd0CIZF33/zVS5lKNLUOxTFUA5EBnL /ZJTdUdPa48bUvCxCtNHV7/hGAzJqnFqHR6vu1kRYG1BENL1opSDfpxZo5uhOkMECEE8 8s2bv87hCe7OQLzJ/OkGRvFh21oxtEpy72ipOzoysiIT4gU5JbkKqtiXJ/G1mv50K5IG 3HTeD5c8JTRgA7DJWMQZYM6UKMfWKLPxA7VhRqhz6ZL6ktiJA6REv+W3b7J55MyBuYLD rS+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697627518; x=1698232318; 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=NO/PDoCfvCIQp8CUhsVVtzA3USwqbfuZSWYXmX0vX4k=; b=tGJTJj1WsFlsNOZA7ex37BhvxMB14cdMXzfTfE8s+6hGaFZzk8Mj12s8ky/9458xkS b+SvllWXWjaXwHwQY7RB0LP7gZ4HRXHEJxj4elw7QfJJlJ25MSkGEHt+LsKQ+OMS9JTl p2HiAScCCWLEaGHNt+M/0hXNmSmStDwrdL3KUTPsr+bBa2rOt3mTUPPeHyiX8oRkYOzA ErQpzHBr5ZUizvO7MS7kyI3QMUpX2OoZKI4RkkgchmpI/duwmsg3RS//He/FlW6iWr8D q13+0WFuLiErF4Jnaz4erdI195f7g+Z8YmDJWHfyg+vt+P86JspmdoOvmVFIm5NIE7EI KLfQ== X-Gm-Message-State: AOJu0YwdTCslxBbvI9i4zpS9RpO0tt2VeRzxHyGm5ipkmzykrzV54tW1 bKuz2M9WOKZIblwmeBRHonSMucKJI2sOaNszYeP6+Q== X-Received: by 2002:a81:a214:0:b0:5a8:19b0:513f with SMTP id w20-20020a81a214000000b005a819b0513fmr5479705ywg.14.1697627517806; Wed, 18 Oct 2023 04:11:57 -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: <169762516670.391804.7528295251386913602.robh@kernel.org> From: Linus Walleij Date: Wed, 18 Oct 2023 13:11:45 +0200 Message-ID: Subject: Re: [PATCH net-next v4 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports To: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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]); Wed, 18 Oct 2023 04:12:06 -0700 (PDT) On Wed, Oct 18, 2023 at 12:32=E2=80=AFPM Rob Herring wrot= e: > 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=3D-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] wron= g indentation: expected 8 but found 6 (indentation) > ./Documentation/devicetree/bindings/net/dsa/dsa.yaml:62:7: [warning] wron= g indentation: expected 8 but found 6 (indentation) Really? + oneOf: + - required: + - ports + - required: + - ethernet-ports Two spaces after the oneOf, 2 spaces after a required as usual. I don't get it. Yours, Linus Walleij