From 1f117ec287c26c10b98bc109195fc8db3918977f Mon Sep 17 00:00:00 2001 From: Xingyu Chen Date: Tue, 25 Feb 2020 19:47:16 +0800 Subject: [PATCH] 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 --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index b5f796aabf40..77e592fe489b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -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);