Commit 958b6827 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by Kalle Valo

ath9k: Handle MCI_STATE_AIC_CAL_RESET

Add a routine to handle the MCI_STATE_AIC_CAL_RESET
message.
Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 208837ee
...@@ -512,6 +512,14 @@ static u8 ar9003_aic_cal_continue(struct ath_hw *ah, bool cal_once) ...@@ -512,6 +512,14 @@ static u8 ar9003_aic_cal_continue(struct ath_hw *ah, bool cal_once)
} }
u8 ar9003_aic_cal_reset(struct ath_hw *ah)
{
struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic;
aic->aic_cal_state = AIC_CAL_STATE_IDLE;
return aic->aic_cal_state;
}
u8 ar9003_aic_calibration_single(struct ath_hw *ah) u8 ar9003_aic_calibration_single(struct ath_hw *ah)
{ {
struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
......
...@@ -53,6 +53,7 @@ struct ath_aic_out_info { ...@@ -53,6 +53,7 @@ struct ath_aic_out_info {
struct ath_aic_sram_info sram; struct ath_aic_sram_info sram;
}; };
u8 ar9003_aic_cal_reset(struct ath_hw *ah);
u8 ar9003_aic_calibration_single(struct ath_hw *ah); u8 ar9003_aic_calibration_single(struct ath_hw *ah);
#endif /* AR9003_AIC_H */ #endif /* AR9003_AIC_H */
...@@ -1363,6 +1363,10 @@ u32 ar9003_mci_state(struct ath_hw *ah, u32 state_type) ...@@ -1363,6 +1363,10 @@ u32 ar9003_mci_state(struct ath_hw *ah, u32 state_type)
value = (!mci->unhalt_bt_gpm && mci->need_flush_btinfo) ? 1 : 0; value = (!mci->unhalt_bt_gpm && mci->need_flush_btinfo) ? 1 : 0;
mci->need_flush_btinfo = false; mci->need_flush_btinfo = false;
break; break;
case MCI_STATE_AIC_CAL_RESET:
if (ath9k_hw_is_aic_enabled(ah))
value = ar9003_aic_cal_reset(ah);
break;
case MCI_STATE_AIC_CAL_SINGLE: case MCI_STATE_AIC_CAL_SINGLE:
if (ath9k_hw_is_aic_enabled(ah)) if (ath9k_hw_is_aic_enabled(ah))
value = ar9003_aic_calibration_single(ah); value = ar9003_aic_calibration_single(ah);
......
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