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
1 changed files with 1 additions and 0 deletions
|
@ -7171,6 +7171,7 @@ int stmmac_suspend(struct device *dev)
|
||||||
priv->plat->rx_queues_to_use, false);
|
priv->plat->rx_queues_to_use, false);
|
||||||
|
|
||||||
stmmac_fpe_handshake(priv, false);
|
stmmac_fpe_handshake(priv, false);
|
||||||
|
stmmac_fpe_stop_wq(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->speed = SPEED_UNKNOWN;
|
priv->speed = SPEED_UNKNOWN;
|
||||||
|
|
Loading…
Add table
Reference in a new issue