From: Alexey Dobriyan Date: Fri, 30 Jan 2009 21:45:31 +0000 (-0800) Subject: sky2: fix hard hang with netconsoling and iface going up X-Git-Tag: MMI-PSA29.97-13-9~29256^2~215 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a11da890e4c9850411303efcf6514f048ca880ee;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sky2: fix hard hang with netconsoling and iface going up Printing anything over netconsole before hw is up and running is, of course, not going to work. Signed-off-by: Alexey Dobriyan Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 3668e81e474d..994703cc0db3 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -1403,9 +1403,6 @@ static int sky2_up(struct net_device *dev) } - if (netif_msg_ifup(sky2)) - printk(KERN_INFO PFX "%s: enabling interface\n", dev->name); - netif_carrier_off(dev); /* must be power of 2 */ @@ -1484,6 +1481,9 @@ static int sky2_up(struct net_device *dev) sky2_write32(hw, B0_IMSK, imask); sky2_set_multicast(dev); + + if (netif_msg_ifup(sky2)) + printk(KERN_INFO PFX "%s: enabling interface\n", dev->name); return 0; err_out: