Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe797455 authored by Alan Cox's avatar Alan Cox Committed by Jeff Garzik
Browse files

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: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 2efa53f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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