wifi: rtw89: add default quirks as features to chip_info

The coming chip will support thermal protection by default, so add default
quirks to chip_info.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251229030926.27004-9-pkshih@realtek.com
This commit is contained in:
Ping-Ke Shih 2025-12-29 11:09:22 +08:00
parent d57ec29478
commit 8cb147e237
8 changed files with 10 additions and 0 deletions

View File

@ -5924,6 +5924,9 @@ int rtw89_core_init(struct rtw89_dev *rtwdev)
struct rtw89_btc *btc = &rtwdev->btc;
u8 band;
bitmap_or(rtwdev->quirks, rtwdev->quirks, &rtwdev->chip->default_quirks,
NUM_OF_RTW89_QUIRKS);
INIT_LIST_HEAD(&rtwdev->ba_list);
INIT_LIST_HEAD(&rtwdev->forbid_ba_list);
INIT_LIST_HEAD(&rtwdev->rtwvifs_list);

View File

@ -4559,6 +4559,7 @@ struct rtw89_chip_info {
const struct rtw89_edcca_regs *edcca_regs;
const struct wiphy_wowlan_support *wowlan_stub;
const struct rtw89_xtal_info *xtal_info;
unsigned long default_quirks; /* bitmap of rtw89_quirks */
};
struct rtw89_chip_variant {

View File

@ -2715,6 +2715,7 @@ const struct rtw89_chip_info rtw8851b_chip_info = {
.wowlan_stub = &rtw_wowlan_stub_8851b,
#endif
.xtal_info = &rtw8851b_xtal_info,
.default_quirks = 0,
};
EXPORT_SYMBOL(rtw8851b_chip_info);

View File

@ -2400,6 +2400,7 @@ const struct rtw89_chip_info rtw8852a_chip_info = {
.wowlan_stub = &rtw_wowlan_stub_8852a,
#endif
.xtal_info = &rtw8852a_xtal_info,
.default_quirks = 0,
};
EXPORT_SYMBOL(rtw8852a_chip_info);

View File

@ -1029,6 +1029,7 @@ const struct rtw89_chip_info rtw8852b_chip_info = {
.wowlan_stub = &rtw_wowlan_stub_8852b,
#endif
.xtal_info = NULL,
.default_quirks = 0,
};
EXPORT_SYMBOL(rtw8852b_chip_info);

View File

@ -886,6 +886,7 @@ const struct rtw89_chip_info rtw8852bt_chip_info = {
.wowlan_stub = &rtw_wowlan_stub_8852bt,
#endif
.xtal_info = NULL,
.default_quirks = 0,
};
EXPORT_SYMBOL(rtw8852bt_chip_info);

View File

@ -3245,6 +3245,7 @@ const struct rtw89_chip_info rtw8852c_chip_info = {
.wowlan_stub = &rtw_wowlan_stub_8852c,
#endif
.xtal_info = NULL,
.default_quirks = 0,
};
EXPORT_SYMBOL(rtw8852c_chip_info);

View File

@ -3011,6 +3011,7 @@ const struct rtw89_chip_info rtw8922a_chip_info = {
.wowlan_stub = &rtw_wowlan_stub_8922a,
#endif
.xtal_info = NULL,
.default_quirks = 0,
};
EXPORT_SYMBOL(rtw8922a_chip_info);