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 <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
Alan Cox 2007-03-07 16:37:38 +00:00 • committed by Jeff Garzik
commit fe79745507

View file

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