Skip to content

Commit 6aae1bc

Browse files
liujian56Paolo Abeni
authored andcommitted
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: fef2998 ("net: altera: tse: convert to phylink") Signed-off-by: Liu Jian <liujian56@huawei.com> Link: https://lore.kernel.org/r/20221123011617.332302-1-liujian56@huawei.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent b068656 commit 6aae1bc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/altera/altera_tse_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ static int tse_shutdown(struct net_device *dev)
990990
int ret;
991991

992992
phylink_stop(priv->phylink);
993+
phylink_disconnect_phy(priv->phylink);
993994
netif_stop_queue(dev);
994995
napi_disable(&priv->napi);
995996

0 commit comments

Comments
 (0)