]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpio/gpio-omap.c
gpio/omap: fix debounce clock handling
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Wed, 23 Nov 2011 21:33:28 +0000 (03:03 +0530)
committerTarun Kanti DebBarma <tarun.kanti@ti.com>
Mon, 6 Feb 2012 11:11:35 +0000 (16:41 +0530)
commit72f83af99838bb663f85b65386db5b875748f379
tree612ddc67b783a82a40650acbf8a5a2e40f712307
parent2dc983c565e03f6f6f96c5fe7449b65d86af4dee
gpio/omap: fix debounce clock handling

The dbck_enable_mask indicates which all GPIOs within a bank have debounce
enabled and dbck is enabled/disabled based upon this. But there is no
mechanism to track the dbck state. In order to manage the dbck state we need
additional flag and logic so that turning off/on dbck is synchronized with
pm_runtime_put/get_sync calls.

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c