From: Florian Fainelli Date: Thu, 5 Jun 2014 17:22:18 +0000 (-0700) Subject: net: systemport: start with carrier off X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f532e744a4693677452da67c48ade5de707f3c1c;p=linux-beck.git net: systemport: start with carrier off 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c index 54b51db0caf3..141160ef249a 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c @@ -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");