]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rtw89: ser: re-enable interrupt in threadfn if under_recovery
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 21 Apr 2022 12:08:54 +0000 (20:08 +0800)
committerKalle Valo <kvalo@kernel.org>
Sun, 24 Apr 2022 11:30:34 +0000 (14:30 +0300)
Normally, we re-enable interrupt by napi_poll, but for this special
situation, we must turn it on immediately because napi_poll isn't
scheduled.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220421120903.73715-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c

index e8bcecbe77e146d6a036b83c9cac38e56c03804f..ad3db5aa890c61689969d0f7d69ea02ac57b0bc9 100644 (file)
@@ -743,7 +743,7 @@ static irqreturn_t rtw89_pci_interrupt_threadfn(int irq, void *dev)
                rtw89_ser_notify(rtwdev, rtw89_mac_get_err_status(rtwdev));
 
        if (unlikely(rtwpci->under_recovery))
-               return IRQ_HANDLED;
+               goto enable_intr;
 
        if (unlikely(rtwpci->low_power)) {
                rtw89_pci_low_power_interrupt_handler(rtwdev);