[PATCH] sky2: fix hard hang with netconsoling and iface going up

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexey Dobriyan
Date: Tuesday, January 27, 2009 - 6:27 am

On Tue, Jan 27, 2009 at 03:01:29PM +0300, Alexey Dobriyan wrote:

Well, duh...


[PATCH] 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 <adobriyan@gmail.com>
---

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

--- 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:
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sky2 vs netconsole hard hang, Alexey Dobriyan, (Tue Jan 27, 5:01 am)
[PATCH] sky2: fix hard hang with netconsoling and iface go ..., Alexey Dobriyan, (Tue Jan 27, 6:27 am)
Re: [PATCH] sky2: fix hard hang with netconsoling and ifac ..., Stephen Hemminger, (Tue Jan 27, 10:49 am)
Re: [PATCH] sky2: fix hard hang with netconsoling and ifac ..., Stephen Hemminger, (Fri Jan 30, 3:01 pm)
Re: [PATCH] sky2: fix hard hang with netconsoling and ifac ..., Stephen Hemminger, (Mon Feb 2, 11:01 am)