Message ID | 20230404204152.635400-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp155690vqo; Tue, 4 Apr 2023 14:01:39 -0700 (PDT) X-Google-Smtp-Source: AKy350ZwetNqbWkNKrQcI/IQFZPwPJPzwdEFfFc5s3njWX81iwDeMq1uzC80dPMwm0zO1pnayczk X-Received: by 2002:a17:906:d284:b0:92b:f118:ef32 with SMTP id ay4-20020a170906d28400b0092bf118ef32mr905851ejb.48.1680642099460; Tue, 04 Apr 2023 14:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680642099; cv=none; d=google.com; s=arc-20160816; b=fXXSAlISxibzwx7F4umXuLjMvqBGrC0hWxr0T8hvYhiAcFkiuApm79hiXQ2YJ5vGCT Th5SdXXoTx1r7Cm91nj73Hmdd5CUp6do+BYEopxi73RhO0GdEXjfOr/kX3i9AA0TgXzb zsqTFxjPG0hOOgoTFiG+nSmaM+IGDCO1GmlPEEH2A6CzZJpSR1isxrUxPXEUMBlr9GIq nGGDFrq272lnEY1dgX27b9oW54FoFe1i/9HQPKLkGvCCM32fRn4cZc3Cp/ssuwrv3+Zd 7wCs6mbGNHAQ4vTVj1zOcHgzuaybQMyluTen0o0yFoXjsm5QVuBd9gxFZtIW6fr0Rrr3 DpTA== 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 :message-id:date:subject:cc:to:from; bh=HiD5Cz7lLNBfVW+arHQFNCec/cgbJ4PqJxRsUE2otgU=; b=gXAYwNZSHs72chKCzz83Bq7hJpr4i/wCq0HnqcC8AnNem4TUTHYFMb/o6M4/0PeeNE bXHw39YcJcAoJHaLu+gUYc/Y99DocrgMN+b1hd91LcUnheOlp2PXRxaCRwfn8iBdepAm iZAlUdmz9PdV27UIZrJwi1+ko7kGlOxbfy66o2hnkCc/rslwpKV8NCoGIOLRtqCZahqz Bzurx/LP5RD4m7JlW6IOf6HeI2ZwpV7vaaMZOLzDRVcNptergvas2PQ1gn3vs8bSP006 Bym5Q05tYI9hmqBX4KwVDCf+d8nEUJWzq/7U7aiZ21tBlS4KhCD0n7A3HoJFgtgZVyv1 Yo7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs9-20020a170906f18900b0093defbd6287si1828253ejb.1038.2023.04.04.14.01.04; Tue, 04 Apr 2023 14:01:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236178AbjDDUmM (ORCPT <rfc822;lkml4gm@gmail.com> + 99 others); Tue, 4 Apr 2023 16:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjDDUmK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Apr 2023 16:42:10 -0400 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35DD44A3; Tue, 4 Apr 2023 13:42:09 -0700 (PDT) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-17ebba88c60so36072426fac.3; Tue, 04 Apr 2023 13:42:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680640929; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HiD5Cz7lLNBfVW+arHQFNCec/cgbJ4PqJxRsUE2otgU=; b=aCBoHaqlOJiKQG1Rrb0QiWFyQBKZGjSxd2n1x5QQdsimtWMCiVG4lihM//wYWwz8t4 o2aMBLxaDdTp3Kmhdu9dkU6odeweZHB66obsa2NP3sk7H0gEZUQYM78f9hylJu8hFoWa iJoOzPSBXDaeGzLYYJGDpcB+ugY2b4Lt5XrtuzY6Vk1BGiPYtvWNd4cXx79ZxKxOj7o6 b3tGRMV/NxvybWds3SshWNnwultiUSj6Exy9k1dEkvk1fUyu8O4LpblnPV7cIdFIJMMa Qg6wAkMEAHcXKaZCn22ce5BvgF6Sbtl9gtuzWN1PIKeU7i7RTDFTNsm0bZiq03F8u3W7 PCAg== X-Gm-Message-State: AAQBX9e7LuxWCMqLQQ1a/2gxc9juns25UPrCg2Gst4vr2vjmeRaOPzeQ MAzGuRBMiJkO4NkyZxnWmQ== X-Received: by 2002:a05:6870:b28a:b0:177:c8b4:5c45 with SMTP id c10-20020a056870b28a00b00177c8b45c45mr2328981oao.2.1680640929084; Tue, 04 Apr 2023 13:42:09 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id y5-20020a9d6345000000b006a249e69aebsm4021405otk.81.2023.04.04.13.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 13:42:08 -0700 (PDT) Received: (nullmailer pid 635685 invoked by uid 1000); Tue, 04 Apr 2023 20:42:07 -0000 From: Rob Herring <robh@kernel.org> To: Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: net: dsa: brcm,sf2: Drop unneeded "#address-cells/#size-cells" Date: Tue, 4 Apr 2023 15:41:52 -0500 Message-Id: <20230404204152.635400-1-robh@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762280970083550938?= X-GMAIL-MSGID: =?utf-8?q?1762280970083550938?= |
Series |
dt-bindings: net: dsa: brcm,sf2: Drop unneeded "#address-cells/#size-cells"
|
|
Commit Message
Rob Herring
April 4, 2023, 8:41 p.m. UTC
There's no need for "#address-cells/#size-cells" in the brcm,sf2 node as
no immediate child nodes have an address. What was probably intended was
to put them in the 'ports' node, but that's not necessary as that is
covered by ethernet-switch.yaml via dsa.yaml.
Signed-off-by: Rob Herring <robh@kernel.org>
---
.../devicetree/bindings/net/dsa/brcm,sf2.yaml | 10 ----------
1 file changed, 10 deletions(-)
Comments
On Tue, Apr 04, 2023 at 03:41:52PM -0500, Rob Herring wrote: > There's no need for "#address-cells/#size-cells" in the brcm,sf2 node as > no immediate child nodes have an address. What was probably intended was > to put them in the 'ports' node, but that's not necessary as that is > covered by ethernet-switch.yaml via dsa.yaml. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
On 4/4/2023 1:41 PM, Rob Herring wrote: > There's no need for "#address-cells/#size-cells" in the brcm,sf2 node as > no immediate child nodes have an address. What was probably intended was > to put them in the 'ports' node, but that's not necessary as that is > covered by ethernet-switch.yaml via dsa.yaml. > > Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
On Tue, 4 Apr 2023 15:41:52 -0500 Rob Herring wrote: > There's no need for "#address-cells/#size-cells" in the brcm,sf2 node as > no immediate child nodes have an address. What was probably intended was > to put them in the 'ports' node, but that's not necessary as that is > covered by ethernet-switch.yaml via dsa.yaml. There was an application fuzz on this one, FWIW. Hope I'm not messing up...
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Tue, 4 Apr 2023 15:41:52 -0500 you wrote: > There's no need for "#address-cells/#size-cells" in the brcm,sf2 node as > no immediate child nodes have an address. What was probably intended was > to put them in the 'ports' node, but that's not necessary as that is > covered by ethernet-switch.yaml via dsa.yaml. > > Signed-off-by: Rob Herring <robh@kernel.org> > > [...] Here is the summary with links: - dt-bindings: net: dsa: brcm,sf2: Drop unneeded "#address-cells/#size-cells" https://git.kernel.org/netdev/net-next/c/f03789766905 You are awesome, thank you!
diff --git a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml index eed16e216fb6..72623cfc8c2d 100644 --- a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml +++ b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml @@ -76,12 +76,6 @@ properties: supports reporting the number of packets in-flight in a switch queue type: boolean - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - ports: type: object @@ -99,8 +93,6 @@ properties: required: - reg - interrupts - - "#address-cells" - - "#size-cells" allOf: - $ref: "dsa.yaml#" @@ -145,8 +137,6 @@ examples: - | switch@f0b00000 { compatible = "brcm,bcm7445-switch-v4.0"; - #address-cells = <1>; - #size-cells = <0>; reg = <0xf0b00000 0x40000>, <0xf0b40000 0x110>, <0xf0b40340 0x30>,