From: Alan Cox Date: Wed, 7 Mar 2007 16:37:38 +0000 (+0000) Subject: z85230: Fix FIFO handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe79745507593941adb44a6b2e392645c54ca1c2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c index 8dbcf83bb5f3..8b4540bfc1b0 100644 --- a/drivers/net/wan/z85230.c +++ b/drivers/net/wan/z85230.c @@ -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