From: Uwe Kleine-König Date: Mon, 17 Jan 2011 19:04:23 +0000 (+0100) Subject: net/fec: add phy_stop to fec_enet_close X-Git-Tag: MMI-PSA29.97-13-9~20520^2~319^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e497ba825b60727f02d8bc21869f445c5aad34e2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/net/fec.c b/drivers/net/fec.c index dd4e580c7f35..d3dbff514d67 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -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);