]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/omap4: Fix missing interrupts during device wakeup due to IOPAD.
authorAmbresh K <ambresh@ti.com>
Wed, 15 Jun 2011 20:40:45 +0000 (13:40 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 16 Jun 2011 14:40:43 +0000 (08:40 -0600)
commited00dd8f8608c03664bd50a2d2dd9187649f06a0
tree220005da0cc200ed5f385d3077ef86f1a5e80a4a
parent380abddf94be3476f85e64e22814c928018c2f42
gpio/omap4: Fix missing interrupts during device wakeup due to IOPAD.

If gpio pins from bank[2-5] are marked as wakeup enable and if the wake is
through gpio IO pad wakeup, then that wakeup gpio interrupt is lost.

In the current implementation, GPIO driver stores the context of DATAIN of
all the gpio in the bank. During GPIO resuming, it checks DATAIN with wakeup
enabled pins of gpio bank. If there is status change, then manually toggle
GPIO_LEVELDETECT to generate pseudo interrupt.

Reported-by: Philippe Mazet <p-mazet@ti.com>
Tested-by: Philippe Mazet <p-mazet@ti.com>
Signed-off-by: Ambresh K <ambresh@ti.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-omap.c