Skip to contentSkip to conversation

net: stmmac: Terminate FPE workqueue in suspend

PATCH Applied [email protected] 2 participants 2 messages Jun 30, 2021 – Jul 1, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: stmmac: Terminate FPE workqueue in suspend

From: Mohammad Athari Bin Ismail <[email protected]>

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")

---
v2 changelog:
- Removed [email protected] from email cc list.

---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +1 -0
index c87202cbd3d6..796ad594543d 100644
@@ -7170,6 +7170,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;
Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 8 lines · On Wed, 30 Jun 2021 17:59:35 +0800 you wrote:

From: Mohammad Athari Bin Ismail <[email protected]>

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.

[...]

Here is the summary with links:
- [v2,net] net: stmmac: Terminate FPE workqueue in suspend

    https://git.kernel.org/netdev/net/c/6b28a86d6c0b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html