dpaa2-switch: do not enable the DPSW at probe time
We should not enable the switch interfaces at probe time since this is trigged by the open callback. Remove the call dpsw_enable() which does exactly this. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
24ab724f8a
commit
042ad90ca7
@ -3281,12 +3281,6 @@ static int dpaa2_switch_probe(struct fsl_mc_device *sw_dev)
|
||||
ðsw->fq[i].napi, dpaa2_switch_poll,
|
||||
NAPI_POLL_WEIGHT);
|
||||
|
||||
err = dpsw_enable(ethsw->mc_io, 0, ethsw->dpsw_handle);
|
||||
if (err) {
|
||||
dev_err(ethsw->dev, "dpsw_enable err %d\n", err);
|
||||
goto err_free_netdev;
|
||||
}
|
||||
|
||||
/* Setup IRQs */
|
||||
err = dpaa2_switch_setup_irqs(sw_dev);
|
||||
if (err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user