mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user