]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: stmmac: Terminate FPE workqueue in suspend
authorMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Wed, 30 Jun 2021 09:59:35 +0000 (17:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:51:46 +0000 (13:51 -0700)
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: 1d0a218e559c ("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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index 8d9d6ecf8c63beaa714c0e34078b265ee38d8354..7b8404a21544cf29668e8a14240c3971e6bce0c3 100644 (file)
@@ -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;