Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2008 23:23:04 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 144215 for review
Message-ID:  <200806272323.m5RNN4wX012790@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=144215

Change 144215 by andrew@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806272323.m5RNN4wX012790>