Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp310790rdb; Thu, 19 Oct 2023 05:27:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrmUP02ZdceRnCDc65quAlzjI6EY4BCGz9/Kf2qovFCktlYxKtkYgTEeL1T9rvUq+1lLPi X-Received: by 2002:a17:902:e5d0:b0:1c9:d236:b2b with SMTP id u16-20020a170902e5d000b001c9d2360b2bmr2115252plf.12.1697718456240; Thu, 19 Oct 2023 05:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697718456; cv=none; d=google.com; s=arc-20160816; b=IajzbcH3SgfchXLS33vI8OStB/sLQiWhqvhpuVqoj0Pvya2KR5bLhv8TFI79khPdb6 jFu31yjQZDPTUqpYUSxHM6BPH/9Y3mzbElL/DtgzAXs8bN6vKveYYxkoC76OY4Wx2emj ku+JOns86HbXpVZg1y/nzl4FkU6aSpu1IZefqlgk1RJ613JADwqeklkpbGEBLpuI1KBZ ZdiTwnimYNvdEYzoXkpEPp2ZusMLhfiMd8PaQPMeAkhnlHQY46DgWktFjiWaqQZT66sk 0StjAqZaQZRVpd1fmcohHBdP4G1iCvhUpDGjwJNKjqujWFnsWnxIB6EDE5A4SogvksLV W+4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yA8MKqdNKQuWdRri1Z3csm7362aeLdSeAXDg+Y/AEeM=; fh=kGwqLs+fHTc5bzZaOXgn3S1WbAQscWT0BkyXe7qpex8=; b=Gow4THc61MUIX//o1S5CtKTn+z75KvZ2HOktXFAC3ggHGEHLkOkXqxW7qcrc1kStrk 4GqK9j2x+xImlHhR1lxtTLIvrHslqEnB3L0265cn1Iw3uiRouyGyvVkPESnOeON6o0oB SxvdA/r7cOhFLIg9GABwpRb7VJ+XyVezdEFr94ypGszZtvEolKAg05461LVXyZ2gMS8P jP9L89bw1qUBf9q6loZ5VBsQSJvwYY7ihxyJHIYYaSASSpUGf7BgqGYoV8G0RFx+m5wn y6Xda0hC4cIeZjctFhkVZojqETJ5UFiap/lzDIF6Mrfq1qZMIeLoraw10z7zYIBt1rIi uQUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=aGGHIh3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u10-20020a170903124a00b001c9e75f87edsi2082897plh.152.2023.10.19.05.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:27:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=aGGHIh3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D47C68130C9C; Thu, 19 Oct 2023 05:27:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345504AbjJSM1X (ORCPT + 99 others); Thu, 19 Oct 2023 08:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235325AbjJSM1U (ORCPT ); Thu, 19 Oct 2023 08:27:20 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F70114; Thu, 19 Oct 2023 05:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yA8MKqdNKQuWdRri1Z3csm7362aeLdSeAXDg+Y/AEeM=; b=aGGHIh3GLpgB0t52zr8cM/UHwA r+n1oNfBUUz+8QnT/LT4RCxC5JzdyI9hvnuXHbpUy4UubkufoJ3K/MYZ+rKaTZGN1xpWB7fSZea60 Tvu23Aj93FxMcHi4PuNISORpelVnxHRAttM/w7hHVjqeaz3ytgjf3nPsAzdXTIKZw0tkG5QZX2fLU QjFKWydbbYaQXmflRIXdtjefPMU16xDeYahMRAYHgD86/4yFXC3XDG2dOxCt25C7Pj4FEtKTTXaf3 AL5yzYEc4S2x0bu57zWFa+7W+e/BLUlHatDAVaC0yd3VIMQIjUTcg6NjaZUD7UJPnr5zUmxTc8UGe YAiedX8g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45182) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qtS7K-00071V-00; Thu, 19 Oct 2023 13:27:10 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qtS7J-0000RU-VQ; Thu, 19 Oct 2023 13:27:09 +0100 Date: Thu, 19 Oct 2023 13:27:09 +0100 From: "Russell King (Oracle)" To: Conor Dooley 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: 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> <20231019-pulse-autopilot-166bb6c96090@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231019-pulse-autopilot-166bb6c96090@spud> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 19 Oct 2023 05:27:33 -0700 (PDT) On Thu, Oct 19, 2023 at 12:58:46PM +0100, Conor Dooley wrote: > 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 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 > > > + - required: > > > + - ethernet-ports > > > > > > Two spaces after the oneOf, 2 spaces after a required as usual. > > > I don't get it. > > > > 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: This is a total of two spaces indentation. > - ports This is a total of six spaces indentation. You mention 2 spaces for the oneOf, which explains why the "- required" needs to be indented by two spaces. You also say 2 spaces for the required nested list, but what about the other two spaces? I guess if you're a YAML expert, this all makes sense, but to those of us who aren't, these quirky "features" of it just seem totally illogical. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!