* [PATCH 2.6.15-rc2] b44: missing netif_wake_queue() in b44_open()
@ 2005-11-24 19:43 Mark Lord
[not found] ` <Pine.LNX.4.64.0511241146560.13959@g5.osdl.org>
0 siblings, 1 reply; 2+ messages in thread
From: Mark Lord @ 2005-11-24 19:43 UTC (permalink / raw)
To: Linus Torvalds, Linux Kernel
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
This patch fixes a problem plaguing Dell notebooks with
built-in b44 ethernet: The driver refuses to transmit packets
of any kind until after the first 5-second tx_timeout occurs.
This bug causes DHCP negotiation to fail (timeout) during
installation of Ubuntu Linux.
One-liner fix. Please review (and apply if you like it).
Signed-off-by: Mark Lord <lkml@rtr.ca>
--- linux-2.6.15-rc2/drivers/net/b44.c 2005-11-19 22:25:03.000000000 -0500
+++ linux/drivers/net/b44.c 2005-11-24 14:28:47.000000000 -0500
@@ -1417,6 +1417,7 @@
add_timer(&bp->timer);
b44_enable_ints(bp);
+ netif_wake_queue(dev); /* prevent the initial tx_timeout() we otherwise see */
out:
return err;
}
[-- Attachment #2: b44_fix.patch --]
[-- Type: text/x-patch, Size: 315 bytes --]
--- linux-2.6.15-rc2/drivers/net/b44.c 2005-11-19 22:25:03.000000000 -0500
+++ linux/drivers/net/b44.c 2005-11-24 14:28:47.000000000 -0500
@@ -1417,6 +1417,7 @@
add_timer(&bp->timer);
b44_enable_ints(bp);
+ netif_wake_queue(dev); /* prevent the initial tx_timeout() we otherwise see */
out:
return err;
}
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <Pine.LNX.4.64.0511241146560.13959@g5.osdl.org>]
[parent not found: <43861E6F.9090604@pobox.com>]
* Re: [PATCH 2.6.15-rc2] b44: missing netif_wake_queue() in b44_open() [not found] ` <43861E6F.9090604@pobox.com> @ 2005-11-24 20:27 ` Mark Lord 0 siblings, 0 replies; 2+ messages in thread From: Mark Lord @ 2005-11-24 20:27 UTC (permalink / raw) To: Jeff Garzik; +Cc: Linus Torvalds, Linux Kernel [-- Attachment #1: Type: text/plain, Size: 1278 bytes --] Jeff Garzik wrote: > Nope. There's no need to wake the queue. > > 1) Use netif_start_queue() rather than netif_wake_queue(), in b44_open() > > 2) OTOH, netif_wake_queue() appears to be missing from the end of > b44_resume(), which has highly similar code. Ah. Thanks, Jeff! I guess the e100.c driver was a bad example to copy here. Fixed, tested, still works fine. Patch now updated. >>> This patch fixes a problem plaguing Dell notebooks with >>> built-in b44 ethernet: The driver refuses to transmit packets >>> of any kind until after the first 5-second tx_timeout occurs. >>> This bug causes DHCP negotiation to fail (timeout) during >>> installation of Ubuntu Linux. >>> >>> One-liner fix. Please review (and apply if you like it). Signed-off-by: Mark Lord <lkml@rtr.ca> --- linux-2.6.15-rc2/drivers/net/b44.c 2005-11-19 22:25:03.000000000 -0500 +++ linux/drivers/net/b44.c 2005-11-24 15:20:47.000000000 -0500 @@ -1417,6 +1417,7 @@ add_timer(&bp->timer); b44_enable_ints(bp); + netif_start_queue(dev); /* prevent the initial tx_timeout() we otherwise see */ out: return err; } @@ -2113,6 +2114,7 @@ add_timer(&bp->timer); b44_enable_ints(bp); + netif_wake_queue(dev); return 0; } [-- Attachment #2: b44_fix2.patch --] [-- Type: text/x-patch, Size: 430 bytes --] --- linux-2.6.15-rc2/drivers/net/b44.c 2005-11-19 22:25:03.000000000 -0500 +++ linux/drivers/net/b44.c 2005-11-24 15:20:47.000000000 -0500 @@ -1417,6 +1417,7 @@ add_timer(&bp->timer); b44_enable_ints(bp); + netif_start_queue(dev); /* prevent the initial tx_timeout() we otherwise see */ out: return err; } @@ -2113,6 +2114,7 @@ add_timer(&bp->timer); b44_enable_ints(bp); + netif_wake_queue(dev); return 0; } ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-24 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-24 19:43 [PATCH 2.6.15-rc2] b44: missing netif_wake_queue() in b44_open() Mark Lord
[not found] ` <Pine.LNX.4.64.0511241146560.13959@g5.osdl.org>
[not found] ` <43861E6F.9090604@pobox.com>
2005-11-24 20:27 ` Mark Lord
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox