Skip to content

Commit

Permalink
sky2: set carrier off in probe
Browse files Browse the repository at this point in the history
Before bringing up a sky2 interface up ethtool reports
"Link detected: yes". Do as ixgbe does and netif_carrier_off() on
probe().

Signed-off-by: Brandon Philips <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Brandon Philips authored and davem330 committed Oct 30, 2009
1 parent 9d410c7 commit 33cb7d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4538,6 +4538,8 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
goto err_out_free_netdev;
}

netif_carrier_off(dev);

netif_napi_add(dev, &hw->napi, sky2_poll, NAPI_WEIGHT);

err = request_irq(pdev->irq, sky2_intr,
Expand Down

0 comments on commit 33cb7d3

Please sign in to comment.