Thread (25 messages) flat view 25 messages, 2 authors, 2011-02-22
STALE5649d

[PATCH 08/14] net/fec: add phy_stop to fec_enet_close

From: Uwe Kleine-König <hidden>
Date: 2011-02-11 10:32:30
Subsystem: networking drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

This undoes the effects of phy_start in fec_enet_open.

Noticed-by: Lothar Waßmann [off-list ref]
Signed-off-by: Uwe Kleine-König <redacted>
---
 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 dd4e580..d3dbff5 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);
 
-- 
1.7.2.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help