[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210630091754.23423-1-mohammad.athari.ismail@intel.com>
Date: Wed, 30 Jun 2021 17:17:54 +0800
From: mohammad.athari.ismail@...el.com
To: Alexandre Torgue <alexandre.torgue@...com>,
Jose Abreu <joabreu@...opsys.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>
Cc: Ong Boon Leong <boon.leong.ong@...el.com>,
Voon Weifeng <weifeng.voon@...el.com>,
Tan Tee Min <tee.min.tan@...el.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
mohammad.athari.ismail@...el.com
Subject: [PATCH net] net: stmmac: Terminate FPE workqueue in suspend
From: Mohammad Athari Bin Ismail <mohammad.athari.ismail@...el.com>
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@...el.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index c87202cbd3d6..796ad594543d 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -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;
--
2.17.1
Powered by blists - more mailing lists