blob: 82e5096bb7f943946dba46538297fdf6c1e9d219 [file] [log] [blame]
developer66e89bc2024-04-23 14:50:01 +08001From 4bc413bf6205f65522cc18e00c64773d70faefdf Mon Sep 17 00:00:00 2001
2From: mtk27745 <rex.lu@mediatek.com>
3Date: Mon, 6 Nov 2023 10:16:34 +0800
4Subject: [PATCH 073/116] mtk: wifi: mt76: mt7996: Remove wed rro ring add napi
5 at init state
6
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
9CR-Id: WCNCR00259341
10Signed-off-by: mtk27745 <rex.lu@mediatek.com>
11---
12 dma.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/dma.c b/dma.c
16index e23b744b8..38701c71e 100644
17--- a/dma.c
18+++ b/dma.c
19@@ -1017,6 +1017,10 @@ mt76_dma_init(struct mt76_dev *dev,
20 init_completion(&dev->mmio.wed_reset_complete);
21
22 mt76_for_each_q_rx(dev, i) {
23+ if (mtk_wed_device_active(&dev->mmio.wed) &&
24+ mt76_queue_is_wed_rro(&dev->q_rx[i]))
25+ continue;
26+
27 netif_napi_add(&dev->napi_dev, &dev->napi[i], poll);
28 mt76_dma_rx_fill(dev, &dev->q_rx[i], false);
29 napi_enable(&dev->napi[i]);
30--
312.39.2
32