gpio/omap: handle save/restore context in GPIO driver
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Wed, 28 Sep 2011 23:17:25 +0000 (04:47 +0530)
committerTarun Kanti DebBarma <tarun.kanti@ti.com>
Mon, 6 Feb 2012 08:43:40 +0000 (14:13 +0530)
commit60a3437dc9a61c7f4b199c2bac3dcc7b611b1178
treec115df789b5da33b843ee7dddf34ddf58e2ae49d
parent6d62e216b2ccbb8176dca73b6899b12a417bb22d
gpio/omap: handle save/restore context in GPIO driver

Modify omap_gpio_prepare_for_idle() & omap_gpio_resume_after_idle() functions
to handle save context & restore context respectively in the OMAP GPIO driver
itself instead of calling these functions from pm specific files.
For this, in gpio_prepare_for_idle(), call *_get_context_loss_count() and in
gpio_resume_after_idle() call it again. If the count is different, do restore
context.

Signed-off-by: Charulatha V <charu@ti.com>
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/gpio.c
arch/arm/mach-omap2/pm34xx.c
arch/arm/plat-omap/include/plat/gpio.h
drivers/gpio/gpio-omap.c
This page took 0.026133 seconds and 5 git commands to generate.