net: systemport: start with carrier off
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 5 Jun 2014 17:22:18 +0000 (10:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jun 2014 22:36:54 +0000 (15:36 -0700)
The SYSTEMPORT driver uses libphy to determine the carrier state, so
make sure we start with a carrier off until libphy has completed the
link training process.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c

index 54b51db0caf3052fdd7609abf4410433f8877669..141160ef249ae83e9d1fe8672dca3926ea9b7172 100644 (file)
@@ -1595,6 +1595,9 @@ static int bcm_sysport_probe(struct platform_device *pdev)
         */
        dev->flags &= ~IFF_MULTICAST;
 
+       /* libphy will adjust the link state accordingly */
+       netif_carrier_off(dev);
+
        ret = register_netdev(dev);
        if (ret) {
                dev_err(&pdev->dev, "failed to register net_device\n");