Skip to content

Commit

Permalink
z85230: Fix FIFO handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Mar 9, 2007
1 parent 2efa53f commit fe79745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wan/z85230.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe79745

Please sign in to comment.