]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP: UART: don't resume UARTs that are not enabled.
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 24 Nov 2010 19:09:03 +0000 (11:09 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 25 Nov 2010 00:09:30 +0000 (16:09 -0800)
commitd345fd8bad7db9372bf788ce761c1997c13a5d4a
treed1bd00a601bfacb0b08e0b4e6b32cbc96dbffd99
parente3cb237152237d7cfcf46145592f7d5e97f86ed5
OMAP: UART: don't resume UARTs that are not enabled.

Add additional check to omap_uart_resume_idle() so that only
enabled (specifically, idle-enabled) UARTs are allowed to resume.
This matches the existing check in prepare idle.

Without this patch, the system will hang if a board is
configured to register only some uarts instead of all of
them and PM is enabled.

Cc: Govindraj R. <govindraj.raja@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
[tony@atomide.com: updated description]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/serial.c