diff options
author | Michael Chan <mchan@broadcom.com> | 2013-02-14 12:13:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-15 14:02:59 -0500 |
commit | 402e1398a398009d82731ec433220e172be4c7af (patch) | |
tree | 80df6fbd8de7bf37519cafb87a955127f554c09e | |
parent | c5d0b72e641340c5dc915cdfab5e2c55d81425c2 (diff) |
tg3: Set initial carrier state to off.
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>
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 7ac0bd00873..3829321cec5 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -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"); |