diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2021-08-03 19:57:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-04 09:53:34 +0100 |
commit | 042ad90ca7ce70f35dc5efd5b2043d2f8aceb12a (patch) | |
tree | 08184d324a351f4daaa0db488f3ae24ff3afc547 /drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | |
parent | 24ab724f8a4661b2dc8e696b41df93bdc108f7a1 (diff) | |
download | lwn-042ad90ca7ce70f35dc5efd5b2043d2f8aceb12a.tar.gz lwn-042ad90ca7ce70f35dc5efd5b2043d2f8aceb12a.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c index f8b7601dc9e4..36a6cfe9eaeb 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c @@ -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) |