From f664ed4cbbba770bab98e7543fe69b426b2fbd36 Mon Sep 17 00:00:00 2001 From: Razvan Stefanescu Date: Thu, 18 May 2017 15:22:44 +0300 Subject: staging: dpaa2-ethsw: Correct port open conditions Checks prevented link restoration when endpoint flipped link state. Signed-off-by: Razvan Stefanescu 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); -- cgit v0.10.2