Commit e414696d authored by Madalin Bucur's avatar Madalin Bucur Committed by David S. Miller

dpaa_eth: extend delays in ndo_stop

Make sure all the frames that are in flight have time to be processed
before the interface is completely brought down. Add a missing delay
for the Rx path.
Signed-off-by: default avatarMadalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1f722e19
...@@ -266,7 +266,7 @@ static int dpaa_stop(struct net_device *net_dev) ...@@ -266,7 +266,7 @@ static int dpaa_stop(struct net_device *net_dev)
/* Allow the Fman (Tx) port to process in-flight frames before we /* Allow the Fman (Tx) port to process in-flight frames before we
* try switching it off. * try switching it off.
*/ */
usleep_range(5000, 10000); msleep(200);
err = mac_dev->stop(mac_dev); err = mac_dev->stop(mac_dev);
if (err < 0) if (err < 0)
...@@ -283,6 +283,8 @@ static int dpaa_stop(struct net_device *net_dev) ...@@ -283,6 +283,8 @@ static int dpaa_stop(struct net_device *net_dev)
phy_disconnect(net_dev->phydev); phy_disconnect(net_dev->phydev);
net_dev->phydev = NULL; net_dev->phydev = NULL;
msleep(200);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment