diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-01-17 20:04:23 +0100 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-02-15 09:26:29 +0100 |
commit | e497ba825b60727f02d8bc21869f445c5aad34e2 (patch) | |
tree | d52b2fe128b7214fc0a5f5e481a5bbce3b2bb935 /drivers/net/fec.c | |
parent | 085e79ed88351d2f3cbf257ff4fc00394792da18 (diff) |
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>
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r-- | drivers/net/fec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index dd4e580c7f3..d3dbff514d6 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); |