diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-11-21 02:24:27 +0400 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-22 00:55:51 +0400 |
commit | ef85fb28305fad7617f307383ebba554a3a891a2 (patch) | |
tree | b644911eafc8f3d0d59fcdbceac556c9f9567f94 /include/linux/bcma | |
parent | 0ef0165b206f4dc86d719c92b0b6a244f690ceb4 (diff) | |
download | linux-ef85fb28305fad7617f307383ebba554a3a891a2.tar.xz |
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>
Diffstat (limited to 'include/linux/bcma')
-rw-r--r-- | include/linux/bcma/bcma_driver_chipcommon.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h index 1cf1749440ac..a085d986c804 100644 --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h @@ -567,6 +567,9 @@ struct bcma_drv_cc { int nr_serial_ports; struct bcma_serial_port serial_ports[4]; #endif /* CONFIG_BCMA_DRIVER_MIPS */ + + /* Lock for GPIO register access. */ + spinlock_t gpio_lock; }; /* Register access */ |