tg3: Set initial carrier state to off.
authorMichael Chan <mchan@broadcom.com>
Thu, 14 Feb 2013 12:13:41 +0000 (12:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Feb 2013 19:02:59 +0000 (14:02 -0500)
Before the device is opened, the carrier state should be off.  It
will not race with the link interrupt if we set it before calling
register_netdev().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c

index 7ac0bd008738e6384298997d5b201c983684f3b1..3829321cec5483da5e2521b1dd364bee6e73cca8 100644 (file)
@@ -16902,6 +16902,8 @@ static int tg3_init_one(struct pci_dev *pdev,
 
        tg3_timer_init(tp);
 
+       tg3_carrier_off(tp);
+
        err = register_netdev(dev);
        if (err) {
                dev_err(&pdev->dev, "Cannot register net device, aborting\n");