aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2011-12-13 22:22:00 -0800
committerArve Hjønnevåg <arve@android.com>2011-12-14 17:58:53 -0800
commit5a44bf340a2f8967a30da5035dfee9ae452a585a (patch)
treeee49d914c45e7379ee4e5422bf5d6bdedb489ee3 /arch/powerpc
parentaa7b27cb96dbadf29308f87d5e189e46d5ca39ce (diff)
downloadkernel_samsung_espresso10-5a44bf340a2f8967a30da5035dfee9ae452a585a.tar.gz
kernel_samsung_espresso10-5a44bf340a2f8967a30da5035dfee9ae452a585a.tar.bz2
kernel_samsung_espresso10-5a44bf340a2f8967a30da5035dfee9ae452a585a.zip
ARM: omap4: gpio: Use pad wakeupevent to detect pulses for edge triggered gpios
When the gpio controller is off we use the pad wakeup to wake up. The current code only detects edges if the state of the gpio when we wake up is different from the state we read before we turned the gpio controller off. This will miss short pulses. We now use the pad wakeupevent status to try to detect these pulses. If the interrupt is configured for dual edge triggering this will generate an interrupt for any pulse detected. If the interrupt is configured for single edge detect we only generate an interrupt if the old state matches the starting state for the enabled edge detect. This will still miss a pulse when the interrupt is configured for only the second edge in that pulse. We may also falsely generate an interrupt if an edge of the wrong polarity occured before reading the initial state (since the pad wakeup is enabled before then). Change-Id: Id9a68cd97b0281a7debb2f37d845979894b63bcc Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions