]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: 8852bx: add extra handles of BTC for 8852BT in 8852b_common
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 1 Jul 2024 01:46:19 +0000 (09:46 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 5 Jul 2024 01:48:10 +0000 (09:48 +0800)
For 8852BT, the initial settings of BT-coexistence is a little bit
different, so add the extra handles.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240701014619.7300-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852b_common.c

index f183dce16398b04076e93c6a88fee73ffdfbd6a4..1745c2882acf5f64b37059aa040620036421cbbb 100644 (file)
@@ -1793,6 +1793,11 @@ static void __rtw8852bx_btc_init_cfg(struct rtw89_dev *rtwdev)
                rtw8852bx_set_trx_mask(rtwdev, RF_PATH_B, BTC_BT_TX_GROUP, 0x5ff);
        }
 
+       if (rtwdev->chip->chip_id == RTL8852BT) {
+               rtw8852bx_set_trx_mask(rtwdev, RF_PATH_A, BTC_BT_RX_GROUP, 0x5df);
+               rtw8852bx_set_trx_mask(rtwdev, RF_PATH_B, BTC_BT_RX_GROUP, 0x5df);
+       }
+
        /* set PTA break table */
        rtw89_write32(rtwdev, R_BTC_BREAK_TABLE, BTC_BREAK_PARAM);