diff options
author | Colin Cross <ccross@android.com> | 2011-10-11 18:44:45 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-10-11 18:56:57 -0700 |
commit | 89d62b51ceed05e82395d62604fb3ce8ca2f5354 (patch) | |
tree | d6c6ddca26e902d3010ecdd0789bf1497de518ea /drivers/gpio | |
parent | c1b13a9889f991044f29c2a7cbbeffed4b46960c (diff) | |
download | kernel_samsung_tuna-89d62b51ceed05e82395d62604fb3ce8ca2f5354.zip kernel_samsung_tuna-89d62b51ceed05e82395d62604fb3ce8ca2f5354.tar.gz kernel_samsung_tuna-89d62b51ceed05e82395d62604fb3ce8ca2f5354.tar.bz2 |
gpio: omap: leave edge detect bits alone in idle
The edge detect bits should be left set if they were set entering
idle, even if wkup_status was cleared for any reason. Apply
wkup_status to the level detect bits only.
Change-Id: I11b0ae629004a42a7fd8d7d5b2a32208586d7697
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 312d45d..26231e2 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1410,9 +1410,9 @@ void omap2_gpio_set_edge_wakeup(void) * expected to produce wakeup from low power. * even if they are set for level detection only. */ - __raw_writel((bank->context.edge_falling | level_low) & wkup_status, + __raw_writel(bank->context.edge_falling | (level_low & wkup_status), (bank->base + bank->regs->fallingdetect)); - __raw_writel((bank->context.edge_rising | level_high) & wkup_status, + __raw_writel(bank->context.edge_rising | (level_high & wkup_status), (bank->base + bank->regs->risingdetect)); } |