Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx> writes: > Tero Kristo <tero.kristo@xxxxxxxxx> writes: > >> From: Tero Kristo <tero.kristo@xxxxxxxxx> >> >> This patch contains following improvements: >> - Only RX interrupt will now kick the sleep prevent timer >> - TX fifo status is checked before disabling clocks, this will prevent >> on-going transmission to be cut >> - Smartidle is now enabled/disabled only while switching clocks, as having >> smartidle enabled while RX/TX prevents any wakeups from being received >> from UART module >> - Added workqueue for wakeup checks, as jiffy timer access within the >> idle loop results into skewed timers as jiffy timers are stopped >> - Added garbage_timer for ignoring the first character received during >> the first tick after clock enable, this prevents garbage characters to be >> received in low sleep states >> - omap_uart_enable_irqs() changed to use enable_irq / disable_irq instead >> of request / free. Using request/free changes the behavior after first >> suspend due to reversed interrupt handler ordering >> >> Signed-off-by: Tero Kristo <tero.kristo@xxxxxxxxx> > > Thanks Tero. This version looks good. > > Adding to pm-fixes queue for 2.6.34-rcX after minor change below... > There's still something slightly strange going on here... I noticed via powertop that the garbage timer is now one of the top reasons for wakeup in an idle system. Seems like the garbage timer is firing when it shouldn't be, and triggering unnecessary wakeups Based on powertop stats, the garbage timer is firing about 3x more often than the GPtimer that should be waking the system. I haven't dug any deeper, but this needs to be fixed before merging upstream. Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html