aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <[email protected]>2025-06-14 07:59:59 +0000
committerJakub Kicinski <[email protected]>2025-06-18 00:52:28 +0000
commitc00df1018791185ea398f78af415a2a0aaa0c79c (patch)
treea608b6b1a8e999cb1e4fbc7cafc161ffc15e29b1 /drivers/net/dsa
parentnet: dsa: b53: fix unicast/multicast flooding on BCM5325 (diff)
downloadkernel-c00df1018791185ea398f78af415a2a0aaa0c79c.tar.gz
kernel-c00df1018791185ea398f78af415a2a0aaa0c79c.zip
net: dsa: b53: fix b53_imp_vlan_setup for BCM5325
CPU port should be B53_CPU_PORT instead of B53_CPU_PORT_25 for B53_PVLAN_PORT_MASK register. Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Álvaro Fernández Rojas <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r--drivers/net/dsa/b53/b53_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c
index 6aaa81af5367..29f207a69b9c 100644
--- a/drivers/net/dsa/b53/b53_common.c
+++ b/drivers/net/dsa/b53/b53_common.c
@@ -543,6 +543,10 @@ void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port)
unsigned int i;
u16 pvlan;
+ /* BCM5325 CPU port is at 8 */
+ if ((is5325(dev) || is5365(dev)) && cpu_port == B53_CPU_PORT_25)
+ cpu_port = B53_CPU_PORT;
+
/* Enable the IMP port to be in the same VLAN as the other ports
* on a per-port basis such that we only have Port i and IMP in
* the same VLAN.