Skip to content
Snippets Groups Projects
Commit 402e1398 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

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: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c5d0b72e
No related merge requests found
...@@ -16902,6 +16902,8 @@ static int tg3_init_one(struct pci_dev *pdev, ...@@ -16902,6 +16902,8 @@ static int tg3_init_one(struct pci_dev *pdev,
tg3_timer_init(tp); tg3_timer_init(tp);
tg3_carrier_off(tp);
err = register_netdev(dev); err = register_netdev(dev);
if (err) { if (err) {
dev_err(&pdev->dev, "Cannot register net device, aborting\n"); dev_err(&pdev->dev, "Cannot register net device, aborting\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment