Commit 56ca0dba authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville

ath9k: Process BTCOEX interrupts using a helper

Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent df198b17
...@@ -460,6 +460,7 @@ void ath9k_start_btcoex(struct ath_softc *sc); ...@@ -460,6 +460,7 @@ void ath9k_start_btcoex(struct ath_softc *sc);
void ath9k_stop_btcoex(struct ath_softc *sc); void ath9k_stop_btcoex(struct ath_softc *sc);
void ath9k_btcoex_timer_resume(struct ath_softc *sc); void ath9k_btcoex_timer_resume(struct ath_softc *sc);
void ath9k_btcoex_timer_pause(struct ath_softc *sc); void ath9k_btcoex_timer_pause(struct ath_softc *sc);
void ath9k_btcoex_handle_interrupt(struct ath_softc *sc, u32 status);
/********************/ /********************/
/* LED Control */ /* LED Control */
......
...@@ -318,6 +318,18 @@ void ath9k_btcoex_timer_pause(struct ath_softc *sc) ...@@ -318,6 +318,18 @@ void ath9k_btcoex_timer_pause(struct ath_softc *sc)
btcoex->hw_timer_enabled = false; btcoex->hw_timer_enabled = false;
} }
void ath9k_btcoex_handle_interrupt(struct ath_softc *sc, u32 status)
{
struct ath_hw *ah = sc->sc_ah;
if (ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_3WIRE)
if (status & ATH9K_INT_GENTIMER)
ath_gen_timer_isr(sc->sc_ah);
if ((status & ATH9K_INT_MCI) && ATH9K_HW_CAP_MCI)
ath_mci_intr(sc);
}
void ath9k_start_btcoex(struct ath_softc *sc) void ath9k_start_btcoex(struct ath_softc *sc)
{ {
struct ath_hw *ah = sc->sc_ah; struct ath_hw *ah = sc->sc_ah;
......
...@@ -735,12 +735,7 @@ void ath9k_tasklet(unsigned long data) ...@@ -735,12 +735,7 @@ void ath9k_tasklet(unsigned long data)
ath_tx_tasklet(sc); ath_tx_tasklet(sc);
} }
if (ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_3WIRE) ath9k_btcoex_handle_interrupt(sc, status);
if (status & ATH9K_INT_GENTIMER)
ath_gen_timer_isr(sc->sc_ah);
if ((status & ATH9K_INT_MCI) && ATH9K_HW_CAP_MCI)
ath_mci_intr(sc);
out: out:
/* re-enable hardware interrupt */ /* re-enable hardware interrupt */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment