Skip to contentSkip to conversation

net: altera_tse: release phylink resources in tse_shutdown()

PATCH Applied Liu Jian 2 participants 2 messages Nov 23, 2022 – Nov 24, 2022

Subsystems (3)
lore
Share & tools
lore

Liu Jian

author
#0 lore raw

PATCH 1/1 net: altera_tse: release phylink resources in tse_shutdown()

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

---
Compile tested only.

 drivers/net/ethernet/altera/altera_tse_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/altera/altera_tse_main.c +1 -0
index 7633b227b2ca..711d5b5a4c49 100644
@@ -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);
 
Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to netdev/net.git (master) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <[email protected]>:

Quoted 9 lines · 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")

---
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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html