aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2011-12-05 17:10:13 -0800
committerArve Hjønnevåg <arve@android.com>2011-12-05 17:34:03 -0800
commit72f0ac587209962b48ef6591449d29d5c6092aa0 (patch)
tree60b93bafdc1b443a2fe7bcf191e5ed7a2f56ca7b /drivers/gpio
parenteee45e50f65cfdaa1978a85c3daf2306f4562db8 (diff)
downloadkernel_samsung_tuna-72f0ac587209962b48ef6591449d29d5c6092aa0.zip
kernel_samsung_tuna-72f0ac587209962b48ef6591449d29d5c6092aa0.tar.gz
kernel_samsung_tuna-72f0ac587209962b48ef6591449d29d5c6092aa0.tar.bz2
ARM: omap4: gpio: Fix lost gpio edge interrutps in low power idle modes.
Use the same omap2_gpio_prepare_for_idle sequence for idle as for suspend. The existing suspend sequence will check if the gpio state has changed while in the low power mode and force an interrupt to be generated if needed. Change-Id: I274f38ebcaa811d6d43550912b7de82ffdb120e9 Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-omap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index 3ab4f4a..d11900a 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1562,7 +1562,7 @@ int omap2_gpio_prepare_for_idle(int off_mode, bool suspend)
if (omap2_gpio_set_edge_wakeup(bank, suspend))
ret = -EBUSY;
- if (bank->loses_context && off_mode)
+ if (bank->loses_context)
if (pm_runtime_put_sync_suspend(bank->dev) < 0)
dev_err(bank->dev, "%s: GPIO bank %d "
"pm_runtime_put_sync failed\n",
@@ -1583,7 +1583,7 @@ void omap2_gpio_resume_after_idle(int off_mode)
if (!bank->mod_usage)
continue;
- if (bank->loses_context && off_mode)
+ if (bank->loses_context)
if (pm_runtime_get_sync(bank->dev) < 0)
dev_err(bank->dev, "%s: GPIO bank %d "
"pm_runtime_get_sync failed\n",