Skip to content
Commit 55b220ca authored by Ambresh K's avatar Ambresh K Committed by Grant Likely
Browse files

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: default avatarPhilippe Mazet <p-mazet@ti.com>
Tested-by: default avatarPhilippe Mazet <p-mazet@ti.com>
Signed-off-by: default avatarAmbresh K <ambresh@ti.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 2c53b436
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment