summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRazvan Stefanescu <razvan.stefanescu@nxp.com>2017-05-18 12:22:44 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:24 (GMT)
commitf664ed4cbbba770bab98e7543fe69b426b2fbd36 (patch)
tree5ce8d48e6ca97a47f51f39b8d6c6f895d60f98b8 /drivers
parentc1d5f41f2372834247763cfeee719536a1ecbe86 (diff)
downloadlinux-f664ed4cbbba770bab98e7543fe69b426b2fbd36.tar.xz
staging: dpaa2-ethsw: Correct port open conditions
Checks prevented link restoration when endpoint flipped link state. Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/fsl-dpaa2/ethsw/switch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethsw/switch.c b/drivers/staging/fsl-dpaa2/ethsw/switch.c
index 4812ecf..297ed99 100644
--- a/drivers/staging/fsl-dpaa2/ethsw/switch.c
+++ b/drivers/staging/fsl-dpaa2/ethsw/switch.c
@@ -823,10 +823,6 @@ static int ethsw_port_open(struct net_device *netdev)
struct ethsw_port_priv *port_priv = netdev_priv(netdev);
int err;
- if (!netif_oper_up(netdev) ||
- port_priv->stp_state == BR_STATE_DISABLED)
- return 0;
-
err = dpsw_if_enable(port_priv->ethsw_priv->mc_io, 0,
port_priv->ethsw_priv->dpsw_handle,
port_priv->port_index);