OMAP: GPIO: ensure debounce clocks are disabled during idle/suspend
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 22 Sep 2010 23:06:27 +0000 (16:06 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 24 Sep 2010 00:14:17 +0000 (17:14 -0700)
commit0aed043517ad4135cb458a46e9e99e21cbb59c69
tree72fe011933f0e8a66fcb10026d9fe593c282d578
parentcbf27660e692d8c74087c0ccb80225207d280af1
OMAP: GPIO: ensure debounce clocks are disabled during idle/suspend

If a GPIO bank has more than one GPIO with debounce enabled, the
debounce clock will not be fully disabled before going to
idle/suspend.

In the idle path, we just do a single clk_disable() of the bank's
debounce clock.  If there are multiple debounce-enabled GPIOs in the
bank, that clocks usage count will be > 1, so the clk_disable() will
not actually disable the clock.

So the fix is to clk_disable() for every debounce-enabled GPIO in the
bank (and an equivalent clk_enable() of course.)

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/plat-omap/gpio.c
This page took 0.027014 seconds and 5 git commands to generate.