From 32beb33a47d417ba671bd85c130eeab59a4dea21 Mon Sep 17 00:00:00 2001 From: Ruslan Isaev Date: Sat, 9 May 2026 13:18:24 +0300 Subject: [PATCH] wifi: mt76: disable rx napi before queue cleanup mt76_dma_cleanup() already disables tx napi before deleting it, but it still removes rx napi instances while they can remain enabled on the normal device remove path. On mt7915 this triggers the warning. Disable each rx napi instance before netif_napi_del() and page pool destruction. This patch fixes repeated `rmmod mt7915e` warnings on mt7915e/mt7981b. Signed-off-by: Ruslan Isaev --- dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dma.c b/dma.c index f8c2fe5f2..12183142f 100644 --- a/dma.c +++ b/dma.c @@ -1189,6 +1189,7 @@ void mt76_dma_cleanup(struct mt76_dev *dev) mt76_for_each_q_rx(dev, i) { struct mt76_queue *q = &dev->q_rx[i]; + napi_disable(&dev->napi[i]); netif_napi_del(&dev->napi[i]); mt76_dma_rx_cleanup(dev, q);