z85230: Fix FIFO handling

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 <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Alan Cox 2007-03-07 16:37:38 +00:00 committed by Jeff Garzik
parent 2efa53f373
commit fe79745507

View File

@ -407,7 +407,7 @@ static void z8530_tx(struct z8530_channel *c)
while(c->txcount) { while(c->txcount) {
/* FIFO full ? */ /* FIFO full ? */
if(!(read_zsreg(c, R0)&4)) if(!(read_zsreg(c, R0)&4))
break; return;
c->txcount--; c->txcount--;
/* /*
* Shovel out the byte * Shovel out the byte