]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
GPIO: OMAP: add locking around calls to _set_gpio_triggering
authorColin Cross <ccross@android.com>
Mon, 6 Jun 2011 20:38:18 +0000 (13:38 -0700)
committerKevin Hilman <khilman@ti.com>
Mon, 6 Jun 2011 23:12:34 +0000 (16:12 -0700)
commit85ec7b970553369e0c956fab1d7a6022f2a99369
treeee66d404199eb4a1cd0c1608b30377e798c305b3
parent0622b25bf071fd83c6eef6b61fb5f3f12a418528
GPIO: OMAP: add locking around calls to _set_gpio_triggering

_set_gpio_triggering uses read-modify-write on bank registers,
lock bank->lock around all calls to it to prevent register
corruption if two cpus access gpios in the same bank at the
same time.

Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c