Commit 0377e2a7 authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo

wifi: rtw89: phy: ignore special data from BB parameter file

BB parameter file is a list of tuple {addr, val} with conditional hardware
version. However, tuples within a condition can't be empty, so insert a
special dummy tuple for this case. Then, ignore this tuple when writing.
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240105064407.36750-1-pkshih@realtek.com
parent d16f34b0
...@@ -32,6 +32,7 @@ extern const struct ieee80211_ops rtw89_ops; ...@@ -32,6 +32,7 @@ extern const struct ieee80211_ops rtw89_ops;
#define MASKDWORD 0xffffffff #define MASKDWORD 0xffffffff
#define RFREG_MASK 0xfffff #define RFREG_MASK 0xfffff
#define INV_RF_DATA 0xffffffff #define INV_RF_DATA 0xffffffff
#define BYPASS_CR_DATA 0xbabecafe
#define RTW89_TRACK_WORK_PERIOD round_jiffies_relative(HZ * 2) #define RTW89_TRACK_WORK_PERIOD round_jiffies_relative(HZ * 2)
#define RTW89_FORBID_BA_TIMER round_jiffies_relative(HZ * 4) #define RTW89_FORBID_BA_TIMER round_jiffies_relative(HZ * 4)
......
...@@ -905,6 +905,8 @@ static void rtw89_phy_config_bb_reg(struct rtw89_dev *rtwdev, ...@@ -905,6 +905,8 @@ static void rtw89_phy_config_bb_reg(struct rtw89_dev *rtwdev,
udelay(5); udelay(5);
else if (reg->addr == 0xf9) else if (reg->addr == 0xf9)
udelay(1); udelay(1);
else if (reg->data == BYPASS_CR_DATA)
rtw89_debug(rtwdev, RTW89_DBG_PHY_TRACK, "Bypass CR 0x%x\n", reg->addr);
else else
rtw89_phy_write32(rtwdev, reg->addr, reg->data); rtw89_phy_write32(rtwdev, reg->addr, reg->data);
} }
......
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