[PATCH net v4 3/7] net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch
arinc9.unal at gmail.com
arinc9.unal at gmail.com
Mon Jun 12 00:59:41 PDT 2023
From: Arınç ÜNAL <arinc.unal at arinc9.com>
The check for setting the CPU_PORT bits must include the non-MT7621 SoC
MT7530 switch variants to trap frames. Expand the check to include them.
Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
---
drivers/net/dsa/mt7530.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index ef8879087932..2bde2fdb5fba 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -3073,7 +3073,7 @@ mt753x_master_state_change(struct dsa_switch *ds,
* the numerically smallest CPU port which is affine to the DSA conduit
* interface that is up.
*/
- if (priv->id != ID_MT7621)
+ if (priv->id != ID_MT7530 && priv->id != ID_MT7621)
return;
if (operational)
--
2.39.2
More information about the linux-arm-kernel
mailing list