]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: mt76: mt7925: fix host interrupt register initialization
authorMichael Lo <michael.lo@mediatek.com>
Fri, 9 May 2025 08:35:12 +0000 (16:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:11:15 +0000 (11:11 +0100)
commit ca872e0ad97159375da8f3d05cac1f48239e01d7 upstream.

ensure proper interrupt handling and aligns with the hardware spec by
updating the register offset for MT_WFDMA0_HOST_INT_ENA.

Cc: stable@vger.kernel.org
Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Michael Lo <michael.lo@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20250509083512.455095-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt7925/pci.c
drivers/net/wireless/mediatek/mt76/mt7925/regs.h

index 9aec675450f267681ba6e3c2b2ab3fceb34551b5..5e428f19f9722a4f4d1dc47b15ed7f4c9e9e0e5b 100644 (file)
@@ -482,9 +482,6 @@ static int mt7925_pci_suspend(struct device *device)
 
        /* disable interrupt */
        mt76_wr(dev, dev->irq_map->host_irq_enable, 0);
-       mt76_wr(dev, MT_WFDMA0_HOST_INT_DIS,
-               dev->irq_map->tx.all_complete_mask |
-               MT_INT_RX_DONE_ALL | MT_INT_MCU_CMD);
 
        mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0x0);
 
index 985794a40c1a8e452c570df2405a46bb82b6fa67..547489092c2947986eaad9001dffaf461be15276 100644 (file)
@@ -28,7 +28,7 @@
 #define MT_MDP_TO_HIF                  0
 #define MT_MDP_TO_WM                   1
 
-#define MT_WFDMA0_HOST_INT_ENA         MT_WFDMA0(0x228)
+#define MT_WFDMA0_HOST_INT_ENA         MT_WFDMA0(0x204)
 #define MT_WFDMA0_HOST_INT_DIS         MT_WFDMA0(0x22c)
 #define HOST_RX_DONE_INT_ENA4          BIT(12)
 #define HOST_RX_DONE_INT_ENA5          BIT(13)