]> git.ipfire.org Git - thirdparty/linux.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)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 May 2025 12:49:38 +0000 (14:49 +0200)
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>
drivers/net/wireless/mediatek/mt76/mt7925/pci.c
drivers/net/wireless/mediatek/mt76/mt7925/regs.h

index c7b5dc1dbb349597702d1822768b741dd86beda9..2e20ecc712071cc447b01e5f6362c0187bad10a0 100644 (file)
@@ -490,9 +490,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)