]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/omap: fix irq loss while in idle with debounce on
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 16 Jun 2012 19:01:25 +0000 (22:01 +0300)
committerKevin Hilman <khilman@ti.com>
Wed, 27 Jun 2012 02:08:49 +0000 (19:08 -0700)
commit7d9361370fd14fd46ab44a347ffc3c46096d3501
treea88c525dae15385174a5ed0adc077ec6cf6bd36e
parenta573b18ab0f77eec7e891a801d0976db71b60d63
gpio/omap: fix irq loss while in idle with debounce on

It seems that currently GPIO module is not working correctly during idle
when debounce is enabled - the system almost never responds to button
presses (observed on OMAP3530 ES2.1 and OMAP3630 ES1.2 pandora boards).
Even though wakeups are probably working, it seems that the GPIO module
itself is unable to detect input events and generate interrupts.
OMAP35x TRM also states that:
  "If the debounce clock is inactive, the debounce cell gates all
   input signals and thus cannot be used."

So whenever we are disabling debounce clocks (for PM or other reasons),
be sure the module's debounce feature is disabled too.

Cc: Kevin Hilman <khilman@ti.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c