diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-01-17 14:04:23 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-02-15 03:26:29 -0500 |
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 dd4e580c7f35..d3dbff514d67 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c | |||
@@ -1029,8 +1029,10 @@ fec_enet_close(struct net_device *dev) | |||
1029 | netif_stop_queue(dev); | 1029 | netif_stop_queue(dev); |
1030 | fec_stop(dev); | 1030 | fec_stop(dev); |
1031 | 1031 | ||
1032 | if (fep->phy_dev) | 1032 | if (fep->phy_dev) { |
1033 | phy_stop(fep->phy_dev); | ||
1033 | phy_disconnect(fep->phy_dev); | 1034 | phy_disconnect(fep->phy_dev); |
1035 | } | ||
1034 | 1036 | ||
1035 | fec_enet_free_buffers(dev); | 1037 | fec_enet_free_buffers(dev); |
1036 | 1038 | ||