Skip to content

Commit

Permalink
omap: GPIO: fix auto-disable of debounce clock
Browse files Browse the repository at this point in the history
The addition of the new debounce code (commit
168ef3d) broke the auto-disable of
debounce clocks on idle by forgetting to update the debounce clock
enable mask.

Add back the updating of bank->dbck_enable_mask so debounce clocks are
auto-disabled.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
metaliveblog authored and tmlind committed Jun 10, 2010
1 parent 856f191 commit f7ec0b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ static void _set_gpio_debounce(struct gpio_bank *bank, unsigned gpio,
if (cpu_is_omap34xx() || cpu_is_omap44xx())
clk_disable(bank->dbck);
}
bank->dbck_enable_mask = val;

__raw_writel(val, reg);
}
Expand Down

0 comments on commit f7ec0b0

Please sign in to comment.