summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro
diff options
context:
space:
mode:
authorMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>2021-06-30 17:59:35 +0800
committerDavid S. Miller <davem@davemloft.net>2021-07-01 13:51:46 -0700
commit6b28a86d6c0bb02119f386ec2f56efde909e9bcb (patch)
tree69997ac8f418fe7283266a31e12cbc1e0ea75fb7 /drivers/net/ethernet/stmicro
parent1c88995dfbf99704d2eab6ea47d048efe9cda68c (diff)
downloadlinux-6b28a86d6c0bb02119f386ec2f56efde909e9bcb.tar.gz
linux-6b28a86d6c0bb02119f386ec2f56efde909e9bcb.tar.bz2
linux-6b28a86d6c0bb02119f386ec2f56efde909e9bcb.zip
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: 5a5586112b92 ("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>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 8d9d6ecf8c63..7b8404a21544 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -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;