Skip to content

Commit c6a9d36

Browse files
Ping-Ke ShihKalle Valo
authored andcommitted
wifi: rtw89: phy: ignore warning of bb gain cfg_type 4
The new BB parameters add new cfg_tpe 4 to improve performance of eFEM modules (rfe_type >= 50), but we are using iFEM modules for now, so this warning can be ignored. Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a9ee25c commit c6a9d36

File tree

1 file changed

+6
-0
lines changed
  • drivers/net/wireless/realtek/rtw89

1 file changed

+6
-0
lines changed

drivers/net/wireless/realtek/rtw89/phy.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ static void rtw89_phy_config_bb_gain(struct rtw89_dev *rtwdev,
10361036
{
10371037
const struct rtw89_chip_info *chip = rtwdev->chip;
10381038
union rtw89_phy_bb_gain_arg arg = { .addr = reg->addr };
1039+
struct rtw89_efuse *efuse = &rtwdev->efuse;
10391040

10401041
if (arg.gain_band >= RTW89_BB_GAIN_BAND_NR)
10411042
return;
@@ -1061,6 +1062,11 @@ static void rtw89_phy_config_bb_gain(struct rtw89_dev *rtwdev,
10611062
case 3:
10621063
rtw89_phy_cfg_bb_gain_op1db(rtwdev, arg, reg->data);
10631064
break;
1065+
case 4:
1066+
/* This cfg_type is only used by rfe_type >= 50 with eFEM */
1067+
if (efuse->rfe_type < 50)
1068+
break;
1069+
fallthrough;
10641070
default:
10651071
rtw89_warn(rtwdev,
10661072
"bb gain {0x%x:0x%x} with unknown cfg type: %d\n",

0 commit comments

Comments
 (0)