bcma: add locking around GPIO register accesses
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 20 Nov 2012 22:24:27 +0000 (22:24 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 21 Nov 2012 20:55:51 +0000 (21:55 +0100)
commitef85fb28305fad7617f307383ebba554a3a891a2
treeb644911eafc8f3d0d59fcdbceac556c9f9567f94
parent0ef0165b206f4dc86d719c92b0b6a244f690ceb4
bcma: add locking around GPIO register accesses

The GPIOs are access through some registers in the chip common core.
We need locking around these GPIO accesses, all GPIOs are accessed
through the same registers and parallel writes will cause problems.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: http://patchwork.linux-mips.org/patch/4585
Acked-by: Florian Fainelli <florian@openwrt.org>
drivers/bcma/driver_chipcommon.c
include/linux/bcma/bcma_driver_chipcommon.h