diff options
author | Liu Jian <liujian56@huawei.com> | 2022-11-23 09:16:17 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-11-24 09:34:43 +0100 |
commit | 6aae1bcb41c7aefd28bf5d90e36ebdd151c2d8ba (patch) | |
tree | 770939ad5ee66ffd794fbc459aed21805580d965 /drivers | |
parent | b0686565946368892c2cdf92f102392e24823588 (diff) | |
download | linux-rpi-6aae1bcb41c7aefd28bf5d90e36ebdd151c2d8ba.tar.gz linux-rpi-6aae1bcb41c7aefd28bf5d90e36ebdd151c2d8ba.tar.bz2 linux-rpi-6aae1bcb41c7aefd28bf5d90e36ebdd151c2d8ba.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/altera/altera_tse_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |