Commit 134cc4c
net: stmmac: Avoid deadlock on suspend/resume
The stmmac driver will try to acquire its private mutex during suspend
via phylink_resolve() -> stmmac_mac_link_down() -> stmmac_eee_init().
However, the phylink configuration is updated with the private mutex
held already, which causes a deadlock during suspend.
Fix this by moving the phylink configuration updates out of the region
of code protected by the private mutex.
Fixes: 19e13cb ("net: stmmac: Hold rtnl lock in suspend/resume callbacks")
Suggested-by: Bitan Biswas <bbiswas@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 53de429 commit 134cc4c
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4716 | 4716 | | |
4717 | 4717 | | |
4718 | 4718 | | |
4719 | | - | |
4720 | | - | |
4721 | 4719 | | |
4722 | 4720 | | |
| 4721 | + | |
| 4722 | + | |
4723 | 4723 | | |
4724 | 4724 | | |
4725 | 4725 | | |
| |||
4733 | 4733 | | |
4734 | 4734 | | |
4735 | 4735 | | |
| 4736 | + | |
4736 | 4737 | | |
4737 | 4738 | | |
4738 | 4739 | | |
| 4740 | + | |
4739 | 4741 | | |
4740 | 4742 | | |
4741 | 4743 | | |
| |||
4827 | 4829 | | |
4828 | 4830 | | |
4829 | 4831 | | |
| 4832 | + | |
| 4833 | + | |
4830 | 4834 | | |
4831 | 4835 | | |
4832 | 4836 | | |
| |||
4835 | 4839 | | |
4836 | 4840 | | |
4837 | 4841 | | |
4838 | | - | |
4839 | | - | |
4840 | 4842 | | |
4841 | 4843 | | |
4842 | 4844 | | |
| |||
0 commit comments