wifi: rtw89: 8852a: adjust IMR for SER L1
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 21 Jul 2022 07:49:52 +0000 (15:49 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 29 Jul 2022 13:35:24 +0000 (16:35 +0300)
SER (system error recovery) L1 (level 1) has a step-by-step handshake
process with FW. These handshakes still rely on B_AX_HS0ISR_IND_INT_EN.
So, even already during recovery, we enable this bit in IMR.

Signed-off-by: Zong-Zhe Yang <kevin_yang@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/20220721074952.19676-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c

index 73b3b7e9fe6f5bc7c9d27875363a893b70adcd0f..c68fec9eb5a643b3de561663e2bab3076a721900 100644 (file)
@@ -3111,7 +3111,7 @@ void rtw89_pci_config_intr_mask(struct rtw89_dev *rtwdev)
        rtwpci->halt_c2h_intrs = B_AX_HALT_C2H_INT_EN | 0;
 
        if (rtwpci->under_recovery) {
-               rtwpci->intrs[0] = 0;
+               rtwpci->intrs[0] = B_AX_HS0ISR_IND_INT_EN;
                rtwpci->intrs[1] = 0;
        } else {
                rtwpci->intrs[0] = B_AX_TXDMA_STUCK_INT_EN |