developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 04d9010a357a8d1d98aefd5263fbf8d27bc19d06 Mon Sep 17 00:00:00 2001 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 2 | From: mtk27745 <rex.lu@mediatek.com> |
| 3 | Date: Mon, 6 Nov 2023 10:16:34 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 077/199] mtk: mt76: mt7996: Remove wed rro ring add napi at |
| 5 | init state |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 6 | |
| 7 | without 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 | |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 9 | Signed-off-by: mtk27745 <rex.lu@mediatek.com> |
| 10 | --- |
| 11 | dma.c | 4 ++++ |
| 12 | 1 file changed, 4 insertions(+) |
| 13 | |
| 14 | diff --git a/dma.c b/dma.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 15 | index e23b744b..38701c71 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 16 | --- 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 | -- |
developer | 9237f44 | 2024-06-14 17:13:04 +0800 | [diff] [blame] | 30 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 31 | |