projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58edb17
)
ethernet: debug function for reset [1/1]
author
Zhuo Wang
<zhuo.wang@amlogic.com>
Fri, 19 Jul 2019 03:13:02 +0000
(11:13 +0800)
committer
Tao Zeng
<tao.zeng@amlogic.com>
Mon, 29 Jul 2019 07:08:03 +0000
(
00:08
-0700)
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index
ff96edb
..
a76fbcf
100644
(file)
--- 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;
}