staging: fsl-dpaa2/ethsw: enable switch ports only on dev_open
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 13 Aug 2019 12:42:59 +0000 (15:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 14:46:24 +0000 (16:46 +0200)
commitf740eb942b2693bf7516026b4c598cb5e4a26e70
tree63904f80d0d167439ed46fd1716a24ae23b1f91b
parent9d8cfa9d5346b133487a2466b0ebd405c3eb6d07
staging: fsl-dpaa2/ethsw: enable switch ports only on dev_open

At probe time, only the DPSW object should be enabled without the
associated ports, which will get enabled on dev_open. Remove the
ethsw_open() and ethsw_stop() functions and replace them only with
dpsw_enable()/_disable().

Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/1565700187-16048-3-git-send-email-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c