mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
wifi: rtw89: phy: extend register to read history 2 of PHY env_monitor
For old chips, history is 8 bits storing in single one register, and RTL8922D's one is 16 bits and two registers. Extend to common flow accordingly. Signed-off-by: Eric Huang <echuang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260114013950.19704-6-pkshih@realtek.com
This commit is contained in:
parent
fc31826cbc
commit
0e8818a309
|
|
@ -5686,7 +5686,7 @@ struct rtw89_env_monitor_info {
|
|||
u16 ifs_clm_cckfa;
|
||||
u16 ifs_clm_cckcca_excl_fa;
|
||||
u16 ifs_clm_total_ifs;
|
||||
u8 ifs_clm_his[RTW89_IFS_CLM_NUM];
|
||||
u16 ifs_clm_his[RTW89_IFS_CLM_NUM];
|
||||
u16 ifs_clm_avg[RTW89_IFS_CLM_NUM];
|
||||
u16 ifs_clm_cca[RTW89_IFS_CLM_NUM];
|
||||
u8 ifs_clm_tx_ratio;
|
||||
|
|
|
|||
|
|
@ -6140,11 +6140,12 @@ static bool rtw89_phy_ifs_clm_get_result(struct rtw89_dev *rtwdev,
|
|||
env->ifs_clm_his[1] =
|
||||
rtw89_phy_read32_idx(rtwdev, ccx->ifs_his_addr,
|
||||
ccx->ifs_t2_his_mask, bb->phy_idx);
|
||||
|
||||
env->ifs_clm_his[2] =
|
||||
rtw89_phy_read32_idx(rtwdev, ccx->ifs_his_addr,
|
||||
rtw89_phy_read32_idx(rtwdev, ccx->ifs_his_addr2,
|
||||
ccx->ifs_t3_his_mask, bb->phy_idx);
|
||||
env->ifs_clm_his[3] =
|
||||
rtw89_phy_read32_idx(rtwdev, ccx->ifs_his_addr,
|
||||
rtw89_phy_read32_idx(rtwdev, ccx->ifs_his_addr2,
|
||||
ccx->ifs_t4_his_mask, bb->phy_idx);
|
||||
|
||||
env->ifs_clm_avg[0] =
|
||||
|
|
@ -8185,6 +8186,7 @@ static const struct rtw89_ccx_regs rtw89_ccx_regs_ax = {
|
|||
.ifs_clm_ofdm_fa_mask = B_IFS_CLM_OFDM_FA_MSK,
|
||||
.ifs_clm_cck_fa_mask = B_IFS_CLM_CCK_FA_MSK,
|
||||
.ifs_his_addr = R_IFS_HIS,
|
||||
.ifs_his_addr2 = R_IFS_HIS,
|
||||
.ifs_t4_his_mask = B_IFS_T4_HIS_MSK,
|
||||
.ifs_t3_his_mask = B_IFS_T3_HIS_MSK,
|
||||
.ifs_t2_his_mask = B_IFS_T2_HIS_MSK,
|
||||
|
|
|
|||
|
|
@ -416,6 +416,7 @@ struct rtw89_ccx_regs {
|
|||
u32 ifs_clm_ofdm_fa_mask;
|
||||
u32 ifs_clm_cck_fa_mask;
|
||||
u32 ifs_his_addr;
|
||||
u32 ifs_his_addr2;
|
||||
u32 ifs_t4_his_mask;
|
||||
u32 ifs_t3_his_mask;
|
||||
u32 ifs_t2_his_mask;
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ static const struct rtw89_ccx_regs rtw89_ccx_regs_be = {
|
|||
.ifs_clm_ofdm_fa_mask = B_IFS_CLM_OFDM_FA_MSK,
|
||||
.ifs_clm_cck_fa_mask = B_IFS_CLM_CCK_FA_MSK,
|
||||
.ifs_his_addr = R_IFS_HIS_V1,
|
||||
.ifs_his_addr2 = R_IFS_HIS_V1,
|
||||
.ifs_t4_his_mask = B_IFS_T4_HIS_MSK,
|
||||
.ifs_t3_his_mask = B_IFS_T3_HIS_MSK,
|
||||
.ifs_t2_his_mask = B_IFS_T2_HIS_MSK,
|
||||
|
|
@ -111,6 +112,7 @@ static const struct rtw89_ccx_regs rtw89_ccx_regs_be_v1 = {
|
|||
.ifs_clm_ofdm_fa_mask = B_IFS_CLM_OFDM_FA_MSK,
|
||||
.ifs_clm_cck_fa_mask = B_IFS_CLM_CCK_FA_MSK,
|
||||
.ifs_his_addr = R_IFS_T1_HIS_BE4,
|
||||
.ifs_his_addr2 = R_IFS_T3_HIS_BE4, /* for 3/4 */
|
||||
.ifs_t4_his_mask = B_IFS_T4_HIS_BE4,
|
||||
.ifs_t3_his_mask = B_IFS_T3_HIS_BE4,
|
||||
.ifs_t2_his_mask = B_IFS_T2_HIS_BE4,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user