[PATCH] OMAP2+: PM/serial: fix console semaphore acquire during suspend
Paul Walmsley
paul at pwsan.com
Tue Dec 7 16:23:38 EST 2010
On Tue, 7 Dec 2010, Kevin Hilman wrote:
> commit 0d8e2d0dad98a693bad88aea6876ac8b94ad95c6 (OMAP2+: PM/serial:
> hold console semaphore while OMAP UARTs are disabled) added use of the
> console semaphore to protect UARTs from being accessed after disabled
> during idle, but this causes problems in suspend.
>
> During suspend, the console semaphore is already held by the time we reach
> the OMAP suspend path, so the try_acquire_console_sem() will always fail and
> suspend will be aborted.
>
> To fix, introduce a check so the console semaphore is only attempted
> during idle, and not during suspend.
>
> Cc: Paul Walmsley <paul at pwsan.com>
> Signed-off-by: Kevin Hilman <khilman at deeprootsystems.com>
Tested-by: Paul Walmsley <paul at pwsan.com>
- Paul
More information about the linux-arm-kernel
mailing list