Skip to contentSkip to conversation

wifi: rtw89: move H2C of del_pkt_offload before polling FW status ready

PATCH In review Ping-Ke Shih 2 participants 3 messages Feb 14, 2023 – Feb 15, 2023 Realtek wireless driver (rtw89)

lore
Share & tools
lore

Ping-Ke Shih

author maintainer
#0 lore raw

PATCH 1/1 wifi: rtw89: move H2C of del_pkt_offload before polling FW status ready

From: Chin-Yen Lee <[email protected]>

The H2C of del_pkt_offload must be called before polling FW status ready, otherwise the following downloading normal FW will fail.

Fixes 5c12bb66b79d ("wifi: rtw89: refine packet offload flow")

---
Hi Kalle,

We found a bug existing in commit 5c12bb66b79d that was merged yesterday. Since merge window is next week, is it possible to merge this patch for kernel 6.3?

Thank you
Ping-Ke

---
 drivers/net/wireless/realtek/rtw89/wow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/realtek/rtw89/wow.c +2 -2
index 92fa366ccfcf7..c78ee2ab732c9 100644
@@ -710,6 +710,8 @@ static int rtw89_wow_fw_stop(struct rtw89_dev *rtwdev)
 		goto out;
 	}
 
+	rtw89_fw_release_general_pkt_list(rtwdev, true);
+
 	ret = rtw89_wow_check_fw_status(rtwdev, false);
 	if (ret) {
 		rtw89_err(rtwdev, "wow: failed to check disable fw ready\n");
@@ -779,8 +781,6 @@ static int rtw89_wow_disable(struct rtw89_dev *rtwdev)
 		goto out;
 	}
 
-	rtw89_fw_release_general_pkt_list(rtwdev, true);
-
 	ret = rtw89_wow_swap_fw(rtwdev, false);
 	if (ret) {
 		rtw89_err(rtwdev, "wow: failed to disable trx_post\n");
Signature · 1 line
2.25.1
#1 lore raw
Quoted 8 lines · Ping-Ke Shih

From: Chin-Yen Lee <[email protected]>

The H2C of del_pkt_offload must be called before polling FW status ready, otherwise the following downloading normal FW will fail.

Fixes 5c12bb66b79d ("wifi: rtw89: refine packet offload flow")
Quoted 6 lines

---
Hi Kalle,

We found a bug existing in commit 5c12bb66b79d that was merged yesterday. Since merge window is next week, is it possible to merge this patch for kernel 6.3?

Ok, I'll queue this to v6.3.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw
In reply to Ping-Ke Shih
Quoted 8 lines · Ping-Ke Shih

From: Chin-Yen Lee <[email protected]>

The H2C of del_pkt_offload must be called before polling FW status ready, otherwise the following downloading normal FW will fail.

Fixes 5c12bb66b79d ("wifi: rtw89: refine packet offload flow")

Patch applied to wireless-next.git, thanks.

ce1ba4d782d9 wifi: rtw89: move H2C of del_pkt_offload before polling FW status ready

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches