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 <zhuo.wang@amlogic.com>
This commit is contained in:
Zhuo Wang
2019-07-19 11:13:02 +08:00
committed by Luan Yuan
parent 18da62f241
commit 34814763ab

View File

@@ -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;
}