PERFORCE change 144215 for review

Andrew Turner andrew at FreeBSD.org
Fri Jun 27 23:23:04 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=144215

Change 144215 by andrew at andrew_bender on 2008/06/27 23:22:58

	Use the uart FIFO status register rather than the TX/RX status register as it is the recomended method of getting the status of the uart when in FIFO mode

Affected files ...

.. //depot/projects/arm/src/sys/arm/s3c2xx0/uart_dev_s3c2410.c#5 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/s3c2xx0/uart_dev_s3c2410.c#5 (text+ko) ====

@@ -222,12 +222,11 @@
 	int ipend = 0;
 	int sr;
 
-	sr = uart_getreg(&sc->sc_bas, SSCOM_UTRSTAT);
+	sr = uart_getreg(&sc->sc_bas, SSCOM_UFSTAT);
 
-	if (sr & UTRSTAT_TXEMPTY && sc->sc_txbusy) {
+	if ((sr & UFSTAT_TXCOUNT) == 0 && sc->sc_txbusy) {
 		ipend |= SER_INT_TXIDLE;
 	}
-
 	return (ipend);
 }
 static int


More information about the p4-projects mailing list