]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: rtw89: trigger TX stuck if FIFO full
authorChia-Yuan Li <leo.li@realtek.com>
Tue, 15 Jul 2025 03:52:55 +0000 (11:52 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 18 Jul 2025 05:58:56 +0000 (13:58 +0800)
In order for the situation where the dispatcher blocking
causes HAXIDMA to be unable to TX to be reported as
a TX stuck, so that subsequent recovery can be handled.

Signed-off-by: Chia-Yuan Li <leo.li@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250715035259.45061-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c

index 597de632e364352ca4b7aaf54ac7040f995170cf..a669f2f843aab4998c3471ab229fba3329508c6c 100644 (file)
@@ -2638,6 +2638,10 @@ static void rtw89_pci_set_dbg(struct rtw89_dev *rtwdev)
        rtw89_write32_set(rtwdev, R_AX_PCIE_DBG_CTRL,
                          B_AX_ASFF_FULL_NO_STK | B_AX_EN_STUCK_DBG);
 
+       rtw89_write32_mask(rtwdev, R_AX_PCIE_EXP_CTRL,
+                          B_AX_EN_STUCK_DBG | B_AX_ASFF_FULL_NO_STK,
+                          B_AX_EN_STUCK_DBG);
+
        if (rtwdev->chip->chip_id == RTL8852A)
                rtw89_write32_set(rtwdev, R_AX_PCIE_EXP_CTRL,
                                  B_AX_EN_CHKDSC_NO_RX_STUCK);