Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33cb7d33 authored by Brandon Philips's avatar Brandon Philips Committed by David S. Miller
Browse files

sky2: set carrier off in probe



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: default avatarBrandon Philips <bphilips@suse.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9d410c79
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -4538,6 +4538,8 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
		goto err_out_free_netdev;
		goto err_out_free_netdev;
	}
	}


	netif_carrier_off(dev);

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


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