netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sky2: set carrier off in probe
@ 2009-10-29 23:58 Brandon Philips
  2009-10-30  3:09 ` Stephen Hemminger
  2009-10-30 19:28 ` David Miller
  0 siblings, 2 replies; 14+ messages in thread
From: Brandon Philips @ 2009-10-29 23:58 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

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 <bphilips@suse.de>

---
 drivers/net/sky2.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6/drivers/net/sky2.c
===================================================================
--- linux-2.6.orig/drivers/net/sky2.c
+++ linux-2.6/drivers/net/sky2.c
@@ -4538,6 +4538,8 @@ static int __devinit sky2_probe(struct p
 		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,

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-10-30 19:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 23:58 [PATCH] sky2: set carrier off in probe Brandon Philips
2009-10-30  3:09 ` Stephen Hemminger
2009-10-30  3:51   ` Brandon Philips
2009-10-30  4:12     ` David Miller
2009-10-30  4:30       ` Brandon Philips
2009-10-30  4:38         ` David Miller
2009-10-30 15:34           ` Stephen Hemminger
2009-10-30 18:11             ` David Miller
2009-10-30 15:54           ` Herbert Xu
2009-10-30 18:10             ` David Miller
2009-10-30 18:16               ` Herbert Xu
2009-10-30 18:20                 ` David Miller
2009-10-30 19:13                   ` Herbert Xu
2009-10-30 19:28 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).