From: Kevin Hilman Date: Wed, 9 Jun 2010 10:53:07 +0000 (+0300) Subject: omap: GPIO: fix auto-disable of debounce clock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7ec0b0b16c97a75a1b6aa8bc8b32548003f3339;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git omap: GPIO: fix auto-disable of debounce clock The addition of the new debounce code (commit 168ef3d9a56bd8bffe0ef4189c450888b4aefefe) 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 393e9219a5b6..9b7e3545f325 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -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); }