From: Kevin Hilman Date: Fri, 8 Oct 2010 17:23:32 +0000 (-0700) Subject: OMAP2: PM: check UART status before trying to idle X-Git-Tag: MMI-PSA29.97-13-9~21968^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=503923eeecb93ff69ee940549f314e0fe3a68429;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git OMAP2: PM: check UART status before trying to idle As is done on OMAP3, check omap_uart_can_sleep() as one of the pre-conditions for entering the idle loop. Without this check, entering idle introduces large latencies on active UARTs, and is especially noticable on serial console. Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index 6aeedeacdad8..f5c7ef955942 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c @@ -245,6 +245,8 @@ static int omap2_can_sleep(void) { if (omap2_fclks_active()) return 0; + if (!omap_uart_can_sleep()) + return 0; if (osc_ck->usecount > 1) return 0; if (omap_dma_running())