ethernet: reset tx queue when resume [1/1]

PD#SWPL-23503

Problem:
The network connection occasionally fails after resume

Solution:
reset tx queue when resume

Verify:
test pass on TL1

Change-Id: I9d9c61c9077e44f2e970ba19b7f8b85f7898bc41
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
This commit is contained in:
Xingyu Chen
2020-02-25 19:47:16 +08:00
committed by Chris
parent 92f177651f
commit 1f117ec287

View File

@@ -3659,6 +3659,9 @@ int stmmac_resume(struct device *dev)
stmmac_clear_descriptors(priv);
spin_unlock_irqrestore(&priv->lock, flags);
#ifdef CONFIG_AMLOGIC_ETH_PRIVE
netdev_reset_queue(priv->dev);
#endif
stmmac_hw_setup(ndev, false);
spin_lock_irqsave(&priv->lock, flags);