diff options
author | Baruch Siach <baruch@tkos.co.il> | 2010-07-06 07:03:22 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-07-28 03:22:51 -0400 |
commit | 14cb0deb66fcfca8fdbef75da8c84b5405a8c767 (patch) | |
tree | 56f48e64c92f694c75a126a4bac0dee64d8f6b60 /arch/arm/plat-mxc/include | |
parent | ef93f1443c014e0d6dd7a5b1e592a02aa266f001 (diff) |
arm/imx/gpio: add spinlock protection
The GPIO registers need protection from concurrent access for operations that
are not atomic.
Cc: stable@kernel.org
Cc: Juergen Beisert <j.beisert@pengutronix.de>
Cc: Daniel Mack <daniel@caiaq.de>
Reported-by: rpkamiak@rockwellcollins.com
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/gpio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/gpio.h b/arch/arm/plat-mxc/include/mach/gpio.h index 9541ecbfd22c..661fbc605759 100644 --- a/arch/arm/plat-mxc/include/mach/gpio.h +++ b/arch/arm/plat-mxc/include/mach/gpio.h | |||
@@ -37,6 +37,7 @@ struct mxc_gpio_port { | |||
37 | int virtual_irq_start; | 37 | int virtual_irq_start; |
38 | struct gpio_chip chip; | 38 | struct gpio_chip chip; |
39 | u32 both_edges; | 39 | u32 both_edges; |
40 | spinlock_t lock; | ||
40 | }; | 41 | }; |
41 | 42 | ||
42 | int mxc_gpio_init(struct mxc_gpio_port*, int); | 43 | int mxc_gpio_init(struct mxc_gpio_port*, int); |