|
@@ -2029,8 +2029,12 @@ static int mv88e6xxx_setup_port(struct dsa_switch *ds, int port)
|
|
|
* a port bitmap that has only the bit for this port set and
|
|
|
* the other bits clear.
|
|
|
*/
|
|
|
- ret = _mv88e6xxx_reg_write(ds, REG_PORT(port), PORT_ASSOC_VECTOR,
|
|
|
- 1 << port);
|
|
|
+ reg = 1 << port;
|
|
|
+ /* Disable learning for DSA and CPU ports */
|
|
|
+ if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port))
|
|
|
+ reg = PORT_ASSOC_VECTOR_LOCKED_PORT;
|
|
|
+
|
|
|
+ ret = _mv88e6xxx_reg_write(ds, REG_PORT(port), PORT_ASSOC_VECTOR, reg);
|
|
|
if (ret)
|
|
|
goto abort;
|
|
|
|