blob: d1b98a3ff3dd96bb1d0500e30ea1ca4a018205a3 [file] [log] [blame]
developer1f55fcf2024-10-17 14:52:33 +08001From 1815f69621dafda1749100c80992820d90c65bef Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: mtk27745 <rex.lu@mediatek.com>
3Date: Mon, 6 Nov 2023 10:16:34 +0800
developer1f55fcf2024-10-17 14:52:33 +08004Subject: [PATCH 065/193] mtk: mt76: mt7996: Remove wed rro ring add napi at
developer05f3b2b2024-08-19 19:17:34 +08005 init state
developer66e89bc2024-04-23 14:50:01 +08006
7without this patch. rro ring will add napi at initial state. once rro ring add napi, it will have chance to be used by host driver. if host driver accessed the ring data, it will cause some issue.
8
developer66e89bc2024-04-23 14:50:01 +08009Signed-off-by: mtk27745 <rex.lu@mediatek.com>
10---
11 dma.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/dma.c b/dma.c
developer1f55fcf2024-10-17 14:52:33 +080015index e23b744..38701c7 100644
developer66e89bc2024-04-23 14:50:01 +080016--- a/dma.c
17+++ b/dma.c
18@@ -1017,6 +1017,10 @@ mt76_dma_init(struct mt76_dev *dev,
19 init_completion(&dev->mmio.wed_reset_complete);
20
21 mt76_for_each_q_rx(dev, i) {
22+ if (mtk_wed_device_active(&dev->mmio.wed) &&
23+ mt76_queue_is_wed_rro(&dev->q_rx[i]))
24+ continue;
25+
26 netif_napi_add(&dev->napi_dev, &dev->napi[i], poll);
27 mt76_dma_rx_fill(dev, &dev->q_rx[i], false);
28 napi_enable(&dev->napi[i]);
29--
developerd0c89452024-10-11 16:53:27 +0800302.45.2
developer66e89bc2024-04-23 14:50:01 +080031