We must exit immediately on a FIFO fill not take the end of packet path
otherwise each underrun in PIO transmit mode causes a runt packet and the
data is lost.
Signed-off-by: Alan Cox <[EMAIL PROTECTED]>
diff -u --new-file --recursive --exclude-from /usr/src/exclude
linux.vanilla-2.6.21-rc2-mm2/drivers/net/wan/z85230.c
linux-2.6.21-rc2-mm2/drivers/net/wan/z85230.c
--- linux.vanilla-2.6.21-rc2-mm2/drivers/net/wan/z85230.c 2007-03-06
23:06:16.000000000 +0000
+++ linux-2.6.21-rc2-mm2/drivers/net/wan/z85230.c 2007-03-06
16:59:50.000000000 +0000
@@ -407,7 +407,7 @@
while(c->txcount) {
/* FIFO full ? */
if(!(read_zsreg(c, R0)&4))
- break;
+ return;
c->txcount--;
/*
* Shovel out the byte
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/