Message ID | 20231029042712.520010-3-cristian.ciocaltea@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp1519965vqb; Sat, 28 Oct 2023 21:28:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHodpAbxOO4/UnP+FJAlRVI1qYOLO4UsyKXBO2e+HBanB6A/mZjGDqbTg95ZizftVd8GT4M X-Received: by 2002:a05:6830:1d9:b0:6c0:e5c3:40b5 with SMTP id r25-20020a05683001d900b006c0e5c340b5mr6980009ota.6.1698553721248; Sat, 28 Oct 2023 21:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698553721; cv=none; d=google.com; s=arc-20160816; b=VXp5FdhQ81i6YRxFTM+Sd9tAiwJpOo4N9OyaIJ8JAF3Ph3vdOe5Y5/NpDrtWsGpJa2 msacR9OTm7TyYHIVE7/6eVMM6EQQJtQNr77wX1LbZVRXcyphYYVHpn7fIxZrdj0ES6n7 bRfmseu57HKu3MvHESUPWqBZzNxJ5RfRZFbrnXKtRWZumRjxFLjYaFFgEomtPWx0Uqqo 6/eNMz5eBTWtLx03B3m9c1oCamw49etA8LJ2BExEMCFHgGHvn6iGChTch4bU1SuG3mUK nsPvRGKQeOa4hWcIsDVPSu4UJCcwAfkRFy1PD2VIG89aHBMCp4VFgNEyivWNa9xvKtrP nfNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dEB1cVwgZZRaVuNBnUfaqbFUSqVI6JRwxtmXTKvvdvs=; fh=25s3loOErHHhz1K9ubO5//IshGSacG8hTjzYtMWmGEo=; b=Is1wfFdOMQdlbNPnbLFdr56+N3yH0nacpEukOoHivyt0rQ6YxGgFi9u3ap88QpTYf4 tJgy18QHFlPGBpFMT4D103e11BVW9g3gf6Oy6wcPD80fiD55gIQWSHBfDIjiGr3ShPu4 Go6HnEY5YDNEj04ISWYXd1P7Vku9QOS8iTY30QKMo3uz6vThzPeIRnMxG9Aq10Oyo0Vg ysvZkkxKcVHtqr/iUqJtR0Un8IX1i8hoK6jfXiLtHIJwh5HracZs8mE+m5/hWWakuhl2 803ZXgdQXFGzionZ0ZFS3hY3df0mhlB5tE3RL2YsfzfQYZu5JwGA7JUrox0Kbo+qPcJU L8TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=f9Rmiofb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e17-20020a17090ab39100b00274caaa057asi344350pjr.42.2023.10.28.21.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 21:28:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=f9Rmiofb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7D272806290E; Sat, 28 Oct 2023 21:27:52 -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 S229950AbjJ2E13 (ORCPT <rfc822;fengqi706@gmail.com> + 30 others); Sun, 29 Oct 2023 00:27:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjJ2E11 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Oct 2023 00:27:27 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D71AD; Sat, 28 Oct 2023 21:27:25 -0700 (PDT) Received: from localhost (unknown [188.24.143.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 87BFD6607340; Sun, 29 Oct 2023 04:27:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698553643; bh=4Ac1sglox319ZVY8QnDJ6GHvVijM8j/9ar97NnhyoHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f9RmiofbNDogf+uRfHtS+0K95TOVfmqAfkEvxWAwnE/dhAKhpBy0KtWzjSQXD1w2u foLopAjd7AESsMpHFRXmsiPu2JZ4DcYMLZ+ituDeDEuH3kJKchUVaKIg/YtjwgxTH/ +2477CasfBUls5EIXnwVF5u20RDEVMS+kq8HZbYzTNqiVLjvXMSbhIk1DYpt4k7C9i Cjlbu6okC4jp5dRj0OGQpLvRZo8HQTx3yH+VHlIiIs8VypO8W10n1/vYNqne8iEVVL aboZIrf6qfiqONkhYZVqypqVm0R5IgG53qO9JW8iAzmG2yY6phGyaX8YVja9l3JzbD lcQpNxLbad60w== From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Emil Renner Berthing <kernel@esmil.dk>, Samin Guo <samin.guo@starfivetech.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Richard Cochran <richardcochran@gmail.com>, Giuseppe Cavallaro <peppe.cavallaro@st.com> Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH v2 02/12] dt-bindings: net: starfive,jh7110-dwmac: Drop superfluous select Date: Sun, 29 Oct 2023 06:27:02 +0200 Message-ID: <20231029042712.520010-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> References: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_BLOCKED, 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: <linux-kernel.vger.kernel.org> 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]); Sat, 28 Oct 2023 21:27:52 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781062666475507629 X-GMAIL-MSGID: 1781062666475507629 |
Series |
Enable networking support for StarFive JH7100 SoC
|
|
Commit Message
Cristian Ciocaltea
Oct. 29, 2023, 4:27 a.m. UTC
The usage of 'select' doesn't seem to have any influence on how this
binding schema is applied to the nodes, hence remove it.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
.../devicetree/bindings/net/starfive,jh7110-dwmac.yaml | 9 ---------
1 file changed, 9 deletions(-)
Comments
On 29/10/2023 05:27, Cristian Ciocaltea wrote: > The usage of 'select' doesn't seem to have any influence on how this > binding schema is applied to the nodes, hence remove it. > It has. Why do you think it doesn't? You should see new errors from dwmac schema. Best regards, Krzysztof
On 10/29/23 13:18, Krzysztof Kozlowski wrote: > On 29/10/2023 05:27, Cristian Ciocaltea wrote: >> The usage of 'select' doesn't seem to have any influence on how this >> binding schema is applied to the nodes, hence remove it. >> > > It has. Why do you think it doesn't? You should see new errors from > dwmac schema. This patch came as a result of testing both variants (w/ and w/o 'select') with several different compatible strings and seeing consistent output: - "starfive,jh7110-dwmac", "invalid"; - "starfive,jh7110-dwmac"; - "invalid", "snps,dwmac-5.20"; - "invalid" Did I miss something? Thanks for the review, Cristian
On 29/10/2023 22:08, Cristian Ciocaltea wrote: > On 10/29/23 13:18, Krzysztof Kozlowski wrote: >> On 29/10/2023 05:27, Cristian Ciocaltea wrote: >>> The usage of 'select' doesn't seem to have any influence on how this >>> binding schema is applied to the nodes, hence remove it. >>> >> >> It has. Why do you think it doesn't? You should see new errors from >> dwmac schema. > > This patch came as a result of testing both variants (w/ and w/o > 'select') with several different compatible strings and seeing > consistent output: > > - "starfive,jh7110-dwmac", "invalid"; > - "starfive,jh7110-dwmac"; > - "invalid", "snps,dwmac-5.20"; > - "invalid" > > Did I miss something? Testing all bindings? The select is there to prevent matching unrelated bindings. Best regards, Krzysztof
On 10/30/23 09:27, Krzysztof Kozlowski wrote: > On 29/10/2023 22:08, Cristian Ciocaltea wrote: >> On 10/29/23 13:18, Krzysztof Kozlowski wrote: >>> On 29/10/2023 05:27, Cristian Ciocaltea wrote: >>>> The usage of 'select' doesn't seem to have any influence on how this >>>> binding schema is applied to the nodes, hence remove it. >>>> >>> >>> It has. Why do you think it doesn't? You should see new errors from >>> dwmac schema. >> >> This patch came as a result of testing both variants (w/ and w/o >> 'select') with several different compatible strings and seeing >> consistent output: >> >> - "starfive,jh7110-dwmac", "invalid"; >> - "starfive,jh7110-dwmac"; >> - "invalid", "snps,dwmac-5.20"; >> - "invalid" >> >> Did I miss something? > > Testing all bindings? The select is there to prevent matching unrelated > bindings. Indeed, my bad, as I've been using DT_SCHEMA_FILES to restrict the scope during initial testing and missed to include later other schemas for an extended validation (note that since [1] it's possible to specify a list of file paths separated by ':'). Will drop this in v3. [1] 25eba1598c8e ("dt-bindings: Fix multi pattern support in DT_SCHEMA_FILES") Thanks, Cristian
diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml index 5e7cfbbebce6..cc3e1c6fc135 100644 --- a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml @@ -11,15 +11,6 @@ maintainers: - Emil Renner Berthing <kernel@esmil.dk> - Samin Guo <samin.guo@starfivetech.com> -select: - properties: - compatible: - contains: - enum: - - starfive,jh7110-dwmac - required: - - compatible - properties: compatible: items: