summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bcmsysport.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-06-05 21:22:18 +0400
committerDavid S. Miller <davem@davemloft.net>2014-06-06 02:36:54 +0400
commitf532e744a4693677452da67c48ade5de707f3c1c (patch)
tree35b5686a03645ee99cfc63284f224e0871ca2cb4 /drivers/net/ethernet/broadcom/bcmsysport.c
parente0ea05d00b61a12935dfceefb388eadcde31f35a (diff)
downloadlinux-f532e744a4693677452da67c48ade5de707f3c1c.tar.xz
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 <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.c')
-rw-r--r--drivers/net/ethernet/broadcom/bcmsysport.c3
1 files changed, 3 insertions, 0 deletions
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");