Commit 19e13cb
net: stmmac: Hold rtnl lock in suspend/resume callbacks
We need to hold rnl lock in suspend and resume callbacks because phylink
requires it. Otherwise we will get a WARN() in suspend and resume.
Also, move phylink start and stop callbacks to inside device's internal
lock so that we prevent concurrent HW accesses.
Fixes: 7437127 ("net: stmmac: Convert to phylink and remove phylib logic")
Reported-by: Christophe ROULLIER <christophe.roullier@st.com>
Tested-by: Christophe ROULLIER <christophe.roullier@st.com>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 28e4860 commit 19e13cb
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4451 | 4451 | | |
4452 | 4452 | | |
4453 | 4453 | | |
4454 | | - | |
4455 | | - | |
4456 | 4454 | | |
4457 | 4455 | | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
| 4459 | + | |
4458 | 4460 | | |
4459 | 4461 | | |
4460 | 4462 | | |
| |||
4558 | 4560 | | |
4559 | 4561 | | |
4560 | 4562 | | |
4561 | | - | |
4562 | | - | |
| 4563 | + | |
4563 | 4564 | | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
4564 | 4568 | | |
4565 | 4569 | | |
4566 | 4570 | | |
| |||
0 commit comments