You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.0 KiB
56 lines
2.0 KiB
From 4a2b3add123d3960c16b03a6cb0dd240cc5042f5 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= <ihuguet@redhat.com>
|
|
Date: Wed, 24 May 2023 15:00:37 +0200
|
|
Subject: [PATCH 115/142] wifi: rtw89: coex: Clear Bluetooth HW PTA counter
|
|
when radio state change
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Bugzilla: https://bugzilla.redhat.com/2207499
|
|
|
|
commit aae256c0f2334691645d52e7cc965bf4241b599b
|
|
Author: Ching-Te Ku <ku920601@realtek.com>
|
|
Date: Tue Jan 17 19:41:03 2023 +0800
|
|
|
|
wifi: rtw89: coex: Clear Bluetooth HW PTA counter when radio state change
|
|
|
|
Reset the counter no matter Wi-Fi is notified turning into power save or
|
|
not. With rest the counter coexistence will recognize Bluetooth is hanged
|
|
easily.
|
|
|
|
Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
|
|
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
|
|
Signed-off-by: Kalle Valo <kvalo@kernel.org>
|
|
Link: https://lore.kernel.org/r/20230117114109.4298-3-pkshih@realtek.com
|
|
|
|
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
|
|
---
|
|
drivers/net/wireless/realtek/rtw89/coex.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c
|
|
index a9db33e3bcade..ee6b5fff4928b 100644
|
|
--- a/drivers/net/wireless/realtek/rtw89/coex.c
|
|
+++ b/drivers/net/wireless/realtek/rtw89/coex.c
|
|
@@ -5335,7 +5335,6 @@ void rtw89_btc_ntfy_radio_state(struct rtw89_dev *rtwdev, enum btc_rfctrl rf_sta
|
|
}
|
|
|
|
if (rf_state == BTC_RFCTRL_WL_ON) {
|
|
- btc->dm.cnt_dm[BTC_DCNT_BTCNT_FREEZE] = 0;
|
|
rtw89_btc_fw_en_rpt(rtwdev, RPT_EN_MREG, true);
|
|
val = BTC_WSCB_ACTIVE | BTC_WSCB_ON | BTC_WSCB_BTLOG;
|
|
_write_scbd(rtwdev, val, true);
|
|
@@ -5347,6 +5346,8 @@ void rtw89_btc_ntfy_radio_state(struct rtw89_dev *rtwdev, enum btc_rfctrl rf_sta
|
|
_write_scbd(rtwdev, BTC_WSCB_ALL, false);
|
|
}
|
|
|
|
+ btc->dm.cnt_dm[BTC_DCNT_BTCNT_FREEZE] = 0;
|
|
+
|
|
_run_coex(rtwdev, BTC_RSN_NTFY_RADIO_STATE);
|
|
|
|
wl->status.map.rf_off_pre = wl->status.map.rf_off;
|
|
--
|
|
2.13.6
|
|
|