diff mbox

[PATCHv7] OMAP3: Serial: Improved sleep logic

Message ID 87vdc14zqc.fsf@deeprootsystems.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Kevin Hilman April 8, 2010, 5:32 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index b731556..b709cf8 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -396,7 +396,8 @@  void omap_uart_prepare_idle(int num)
 
 static void serial_wakeup(struct omap_uart_state *uart)
 {
-	uart->garbage_ignore = 1;
+	if (uart->timeout)
+		uart->garbage_ignore = 1;
 	schedule_work(&uart->wakeup_work);
 }