mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
net: stmmac: Terminate FPE workqueue in suspend
Add stmmac_fpe_stop_wq() in stmmac_suspend() to terminate FPE workqueue
during suspend. So, in suspend mode, there will be no FPE workqueue
available. Without this fix, new additional FPE workqueue will be created
in every suspend->resume cycle.
Fixes: 5a5586112b
("net: stmmac: support FPE link partner hand-shaking procedure")
Signed-off-by: Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1c88995dfb
commit
6b28a86d6c
@ -7171,6 +7171,7 @@ int stmmac_suspend(struct device *dev)
|
||||
priv->plat->rx_queues_to_use, false);
|
||||
|
||||
stmmac_fpe_handshake(priv, false);
|
||||
stmmac_fpe_stop_wq(priv);
|
||||
}
|
||||
|
||||
priv->speed = SPEED_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user