Davinci: gpio - fine grained locking
authorCyril Chemparathy <cyril@ti.com>
Sat, 1 May 2010 22:37:55 +0000 (18:37 -0400)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 6 May 2010 22:02:09 +0000 (15:02 -0700)
commitb27b6d03f245e5eaf6473da58a2612077fb7cfe7
treeb6ed359c8b604edcaed5025aa83c57d77daec1a9
parent686b634a07451fc4fe3b712fe211bfa861a53241
Davinci: gpio - fine grained locking

This patch eliminates the global gpio_lock, and implements a per-controller
lock instead.  This also switches to irqsave/irqrestore locks in case gpios
are manipulated in isr.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Tested-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/gpio.c
arch/arm/mach-davinci/include/mach/gpio.h