aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ssb/ssb_private.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-11-20 17:24:32 -0500
committerJohn Crispin <blogic@openwrt.org>2012-11-21 15:55:52 -0500
commit394bc7e38be79987ed15de203920c3cddb724cc1 (patch)
tree64cb52592aab0fb2f392560fb99d8d61caa81f4a /drivers/ssb/ssb_private.h
parentda22f22e91f0d14d996c7258101575a5a06ddf85 (diff)
ssb: add locking around gpio register accesses
The GPIOs are access through some registers in the chip common core or over extif. 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/4590 Acked-by: Florian Fainelli <florian@openwrt.org>
Diffstat (limited to 'drivers/ssb/ssb_private.h')
-rw-r--r--drivers/ssb/ssb_private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ssb/ssb_private.h b/drivers/ssb/ssb_private.h
index a305550b4b65..d6a1ba9394d9 100644
--- a/drivers/ssb/ssb_private.h
+++ b/drivers/ssb/ssb_private.h
@@ -211,4 +211,12 @@ static inline void b43_pci_ssb_bridge_exit(void)
211extern u32 ssb_pmu_get_cpu_clock(struct ssb_chipcommon *cc); 211extern u32 ssb_pmu_get_cpu_clock(struct ssb_chipcommon *cc);
212extern u32 ssb_pmu_get_controlclock(struct ssb_chipcommon *cc); 212extern u32 ssb_pmu_get_controlclock(struct ssb_chipcommon *cc);
213 213
214#ifdef CONFIG_SSB_DRIVER_EXTIF
215extern void ssb_extif_init(struct ssb_extif *extif);
216#else
217static inline void ssb_extif_init(struct ssb_extif *extif)
218{
219}
220#endif
221
214#endif /* LINUX_SSB_PRIVATE_H_ */ 222#endif /* LINUX_SSB_PRIVATE_H_ */