|
@@ -184,7 +184,6 @@ static int dsa_ds_complete(struct dsa_switch_tree *dst, struct dsa_switch *ds)
|
|
|
if (err != 0)
|
|
|
return err;
|
|
|
|
|
|
- ds->dsa_port_mask |= BIT(index);
|
|
|
port->type = DSA_PORT_TYPE_DSA;
|
|
|
}
|
|
|
|
|
@@ -500,11 +499,6 @@ static int dsa_cpu_parse(struct dsa_port *port, u32 index,
|
|
|
dst->cpu_dp->master = ethernet_dev;
|
|
|
}
|
|
|
|
|
|
- /* Initialize cpu_port_mask now for drv->setup()
|
|
|
- * to have access to a correct value, just like what
|
|
|
- * net/dsa/dsa.c::dsa_switch_setup_one does.
|
|
|
- */
|
|
|
- ds->cpu_port_mask |= BIT(index);
|
|
|
port->type = DSA_PORT_TYPE_CPU;
|
|
|
|
|
|
tag_protocol = ds->ops->get_tag_protocol(ds);
|
|
@@ -540,11 +534,6 @@ static int dsa_ds_parse(struct dsa_switch_tree *dst, struct dsa_switch *ds)
|
|
|
if (err)
|
|
|
return err;
|
|
|
} else {
|
|
|
- /* Initialize enabled_port_mask now for drv->setup()
|
|
|
- * to have access to a correct value, just like what
|
|
|
- * net/dsa/dsa.c::dsa_switch_setup_one does.
|
|
|
- */
|
|
|
- ds->enabled_port_mask |= BIT(index);
|
|
|
port->type = DSA_PORT_TYPE_USER;
|
|
|
}
|
|
|
|