mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:
parent
2efa53f373
commit
fe79745507
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue