* [PATCH net] net: altera_tse: release phylink resources in tse_shutdown()
@ 2022-11-23 1:16 Liu Jian
2022-11-24 8:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Liu Jian @ 2022-11-23 1:16 UTC (permalink / raw)
To: joyce.ooi, davem, edumazet, kuba, pabeni, linux,
maxime.chevallier, netdev
Cc: liujian56
Call phylink_disconnect_phy() in tse_shutdown() to release the
resources occupied by phylink_of_phy_connect() in the tse_open().
Fixes: fef2998203e1 ("net: altera: tse: convert to phylink")
Signed-off-by: Liu Jian <liujian56@huawei.com>
---
Compile tested only.
drivers/net/ethernet/altera/altera_tse_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index 7633b227b2ca..711d5b5a4c49 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -990,6 +990,7 @@ static int tse_shutdown(struct net_device *dev)
int ret;
phylink_stop(priv->phylink);
+ phylink_disconnect_phy(priv->phylink);
netif_stop_queue(dev);
napi_disable(&priv->napi);
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net: altera_tse: release phylink resources in tse_shutdown()
2022-11-23 1:16 [PATCH net] net: altera_tse: release phylink resources in tse_shutdown() Liu Jian
@ 2022-11-24 8:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-11-24 8:50 UTC (permalink / raw)
To: Liu Jian
Cc: joyce.ooi, davem, edumazet, kuba, pabeni, linux,
maxime.chevallier, netdev
Hello:
This patch was applied to netdev/net.git (master)
by Paolo Abeni <pabeni@redhat.com>:
On Wed, 23 Nov 2022 09:16:17 +0800 you wrote:
> Call phylink_disconnect_phy() in tse_shutdown() to release the
> resources occupied by phylink_of_phy_connect() in the tse_open().
>
> Fixes: fef2998203e1 ("net: altera: tse: convert to phylink")
> Signed-off-by: Liu Jian <liujian56@huawei.com>
> ---
> Compile tested only.
> drivers/net/ethernet/altera/altera_tse_main.c | 1 +
> 1 file changed, 1 insertion(+)
Here is the summary with links:
- [net] net: altera_tse: release phylink resources in tse_shutdown()
https://git.kernel.org/netdev/net/c/6aae1bcb41c7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-24 8:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-23 1:16 [PATCH net] net: altera_tse: release phylink resources in tse_shutdown() Liu Jian
2022-11-24 8:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).