From: Zhuo Wang Date: Fri, 19 Jul 2019 03:13:02 +0000 (+0800) Subject: ethernet: debug function for reset [1/1] X-Git-Tag: hardkernel-4.9.236-104~884 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beac8b41e66c2ded67d3e4da7922fd3ea3e88ccd;p=platform%2Fkernel%2Flinux-amlogic.git ethernet: debug function for reset [1/1] PD#SWPL-11505 Problem: STR may crash Solution: improve the suspend/rusume flow Verify: verify on g12a u200 board Change-Id: Ie7b4759fd0d801c83eb3c1c314c402ae470b5e3f Signed-off-by: Zhuo Wang --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index ff96edb..a76fbcf 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -3672,8 +3672,8 @@ int stmmac_resume(struct device *dev) phy_start(priv->phydev); #ifdef TX_MONITOR - queue_delayed_work(moniter_tx_wq, &moniter_tx_worker, HZ); - timeout_err = 1; + stmmac_release(priv_monitor->dev); + stmmac_open(priv_monitor->dev); #endif return 0; }