Skip to content

Commit

Permalink
tg3: Set initial carrier state to off.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Chan authored and David S. Miller committed Feb 15, 2013
1 parent c5d0b72 commit 402e139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 402e139

Please sign in to comment.