diff mbox

[PATCHv2,1/3] OMAP UART: Add omap-serial driver support.

Message ID 1256734576.31092.23.camel@kauppi-desktop (mailing list archive)
State Awaiting Upstream, archived
Headers show

Commit Message

Ari Kauppi Oct. 28, 2009, 12:56 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/serial/omap-serial.c b/drivers/serial/omap-serial.c
index 0239209..2a65a36 100644
--- a/drivers/serial/omap-serial.c
+++ b/drivers/serial/omap-serial.c
@@ -483,8 +483,8 @@  static int serial_omap_startup(struct uart_port
*port)
 	/*
 	 * Clear the interrupt registers.
 	 */
-	(void) serial_in(up, UART_LSR);
-	(void) serial_in(up, UART_RX);
+	if (serial_in(up, UART_LSR) & UART_LSR_DR)
+		(void) serial_in(up, UART_RX);
 	(void) serial_in(up, UART_IIR);
 	(void) serial_in(up, UART_MSR);