Netdev List
 help / color / mirror / Atom feed
From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Kordian Chmielewski <kudzo51@gmail.com>, netdev@vger.kernel.org
Cc: "Florian Fainelli" <f.fainelli@gmail.com>,
	"Jonas Gorski" <jonas.gorski@gmail.com>,
	"Andrew Lunn" <andrew@lunn.ch>,
	"Vladimir Oltean" <olteanv@gmail.com>,
	"Rafał Miłecki" <rafal@milecki.pl>,
	"David S . Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@kernel.org>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>
Subject: Re: [PATCH net] net: dsa: bcm_sf2: don't warn when BCM4908 port 7 is not used
Date: Wed, 2 Dec 2026 21:06:08 -0800	[thread overview]
Message-ID: <1035afed-85d9-4a23-9a60-894a51e472a6@broadcom.com> (raw)
In-Reply-To: <20261202095743.157195-1-kudzo51@gmail.com>



On 12/2/2026 1:58 AM, Kordian Chmielewski wrote:
> bcm_sf2_crossbar_setup() connects port 7 of the BCM4908 switch to the
> internal GPHY4 or to the RGMII pins, depending on the port's mode, and
> warns "Invalid port mode" otherwise. A device tree that does not use
> port 7, such as bcm94908.dts, leaves that mode at PHY_INTERFACE_MODE_NA,
> so bcm_sf2_crossbar_setup() hits the WARN on every call, from
> bcm_sf2_sw_probe() and from bcm_sf2_sw_resume(), although nothing is
> wrong.
> 
> Return before setting up the port 7 route when port 7 has no mode. The
> function did not write the register in that case before either, so
> only the warning goes away. A port 7 node without a valid phy-mode is
> treated the same way. A port 7 with a mode that the crossbar code does
> not handle still warns.
> 
> Fixes: a9349f08ec6c ("net: dsa: bcm_sf2: setup BCM4908 internal crossbar")
> Signed-off-by: Kordian Chmielewski <kudzo51@gmail.com>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>

Just a nit, and only if Sashiko requires you to respin: there is a 
disabled encoding with the value 0b11 which would be more appropriate 
for a disabled port than leave it to GPHY4, but that would be a 
potential behavioral change, potentially a subsequent change?
-- 
Florian


      reply	other threads:[~2026-12-03  5:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  9:58 [PATCH net] net: dsa: bcm_sf2: don't warn when BCM4908 port 7 is not used Kordian Chmielewski
2026-12-03  5:06 ` Florian Fainelli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1035afed-85d9-4a23-9a60-894a51e472a6@broadcom.com \
    --to=florian.fainelli@broadcom.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=jonas.gorski@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kudzo51@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=rafal@milecki.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox