net/fec: add phy_stop to fec_enet_close
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 17 Jan 2011 19:04:23 +0000 (20:04 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 15 Feb 2011 08:26:29 +0000 (09:26 +0100)
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>
drivers/net/fec.c

index dd4e580c7f35aa88e723ba96ac2d5d1589eff578..d3dbff514d67a590b2f6e5ced3b6caec7f9e2b16 100644 (file)
@@ -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);