arm/imx/gpio: add spinlock protection
commit472d843193788d526b147fe547b7ec76780ea727
authorBaruch Siach <baruch@tkos.co.il>
Tue, 6 Jul 2010 11:03:22 +0000 (6 14:03 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 17:54:07 +0000 (10 10:54 -0700)
tree99e3771969dc29ee48335f51d9eee41ed3ffb260
parent3c9cb324ac093a02923963e9f1322349c2525799
arm/imx/gpio: add spinlock protection

commit 14cb0deb66fcfca8fdbef75da8c84b5405a8c767 upstream.

The GPIO registers need protection from concurrent access for operations that
are not atomic.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/plat-mxc/gpio.c
arch/arm/plat-mxc/include/mach/gpio.h