Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Liu Jian and committed by
Paolo Abeni
6aae1bcb b0686565

+1
+1
drivers/net/ethernet/altera/altera_tse_main.c
··· 990 990 int ret; 991 991 992 992 phylink_stop(priv->phylink); 993 + phylink_disconnect_phy(priv->phylink); 993 994 netif_stop_queue(dev); 994 995 napi_disable(&priv->napi); 995 996