]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: fec: reset PHY in the probe() function rather when opening the net device
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 10:28:23 +0000 (12:28 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:07:00 +0000 (10:07 +0200)
This fixes an intermittent failure to detect the PHY.

drivers/net/ethernet/freescale/fec_main.c

index 1596a3a32268857ed9442478980cbc61146e092a..f1fd569caa354e1c41b83ffe113d339e82cba526 100644 (file)
@@ -2171,9 +2171,6 @@ fec_enet_open(struct net_device *ndev)
        netif_start_queue(ndev);
        fep->opened = 1;
 
-       /* reset phy */
-       fec_reset_phy(fep->pdev);
-
        return 0;
 }
 
@@ -2610,6 +2607,8 @@ fec_probe(struct platform_device *pdev)
                fep->reg_phy = NULL;
        }
 
+       fec_reset_phy(pdev);
+
        if (fep->bufdesc_ex)
                fec_ptp_init(pdev);