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:
parent
2efa53f373
commit
fe79745507
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user