OMAP3: Fixed crash bug with serial + suspend
authorTero Kristo <tero.kristo@nokia.com>
Thu, 5 Mar 2009 14:32:23 +0000 (16:32 +0200)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 5 Aug 2009 16:10:53 +0000 (09:10 -0700)
commit2466211e5debd205fc550d871fe0ab9b9a6d02ed
treec4c0c9e44a9a36c3695bf1c13444093263df2a81
parent4789998a30d845d94a7595076d1392ffd5a9d39e
OMAP3: Fixed crash bug with serial + suspend

It was possible for an unhandled interrupt to occur if there was incoming
serial traffic during wakeup from suspend. This was caused by the code
in arch-arm/mach-omap2/serial.c keeping interrupt enabled all the time,
but not acking its interrupts. Applies on top of PM branch.

Use the PM begin/end hooks to ensure that the "serial idle" interrupts
are disabled during the suspend path.  Also, since begin/end hooks are
now used, use the suspend_state that is passed in the begin hook instead
of the enter hook as per the platform_suspend_ops docs.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/include/mach/serial.h