net/fec: add phy_stop to fec_enet_close
This undoes the effects of phy_start in fec_enet_open. Reported-by: Lothar Waßmann <LW@KARO-electronics.de> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This commit is contained in:
parent
085e79ed88
commit
e497ba825b
@ -1029,8 +1029,10 @@ fec_enet_close(struct net_device *dev)
|
||||
netif_stop_queue(dev);
|
||||
fec_stop(dev);
|
||||
|
||||
if (fep->phy_dev)
|
||||
if (fep->phy_dev) {
|
||||
phy_stop(fep->phy_dev);
|
||||
phy_disconnect(fep->phy_dev);
|
||||
}
|
||||
|
||||
fec_enet_free_buffers(dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user