net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch
[platform/kernel/linux-starfive.git] / drivers / net / dsa / mt7530.c
index 855220c..886dc7d 100644 (file)
@@ -1020,7 +1020,7 @@ mt753x_cpu_port_enable(struct dsa_switch *ds, int port)
                   UNU_FFP(BIT(port)));
 
        /* Set CPU port number */
-       if (priv->id == ID_MT7621)
+       if (priv->id == ID_MT7530 || priv->id == ID_MT7621)
                mt7530_rmw(priv, MT7530_MFC, CPU_MASK, CPU_EN | CPU_PORT(port));
 
        /* CPU port gets connected to all user ports of