aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/gpio.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-02-22 02:10:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-27 14:06:34 -0500
commit56ca0dba9d5fbc2948ed0c3a4fffc51cd875abb9 (patch)
tree7b2f6667a614a81da1e1f8a7eea2fb608cf2ea54 /drivers/net/wireless/ath/ath9k/gpio.c
parentdf198b172f7a14ecf7aefaadb3761c273600333e (diff)
ath9k: Process BTCOEX interrupts using a helper
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/gpio.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/gpio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index 1ca2ca54f0e1..a24aa679c699 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -318,6 +318,18 @@ void ath9k_btcoex_timer_pause(struct ath_softc *sc)
318 btcoex->hw_timer_enabled = false; 318 btcoex->hw_timer_enabled = false;
319} 319}
320 320
321void ath9k_btcoex_handle_interrupt(struct ath_softc *sc, u32 status)
322{
323 struct ath_hw *ah = sc->sc_ah;
324
325 if (ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_3WIRE)
326 if (status & ATH9K_INT_GENTIMER)
327 ath_gen_timer_isr(sc->sc_ah);
328
329 if ((status & ATH9K_INT_MCI) && ATH9K_HW_CAP_MCI)
330 ath_mci_intr(sc);
331}
332
321void ath9k_start_btcoex(struct ath_softc *sc) 333void ath9k_start_btcoex(struct ath_softc *sc)
322{ 334{
323 struct ath_hw *ah = sc->sc_ah; 335 struct ath_hw *ah = sc->sc_ah;