blob: dc174f49af5dc6588df3950fec1b049051c7953a [file] [log] [blame]
developer1f55fcf2024-10-17 14:52:33 +08001From 5a9d5f2a8120137d5b7de535031325139d54a1e5 Mon Sep 17 00:00:00 2001
developerd0c89452024-10-11 16:53:27 +08002From: Rex Lu <rex.lu@mediatek.com>
3Date: Fri, 6 Sep 2024 15:32:05 +0800
developer1f55fcf2024-10-17 14:52:33 +08004Subject: [PATCH 193/193] mtk: mt76: mt7996: Fix call trace happened when wed
developerd0c89452024-10-11 16:53:27 +08005 attach fail
6
71. when we attech wed0 fail, we will not going to attach wed1
8
9Signed-off-by: Rex Lu <rex.lu@mediatek.com>
10---
11 mt7996/mmio.c | 5 ++++-
12 1 file changed, 4 insertions(+), 1 deletion(-)
13
14diff --git a/mt7996/mmio.c b/mt7996/mmio.c
developer1f55fcf2024-10-17 14:52:33 +080015index c84c1bb..8eff971 100644
developerd0c89452024-10-11 16:53:27 +080016--- a/mt7996/mmio.c
17+++ b/mt7996/mmio.c
18@@ -449,8 +449,11 @@ int mt7996_mmio_wed_init(struct mt7996_dev *dev, void *pdev_ptr,
19 wed->wlan.reset_complete = mt76_wed_reset_complete;
20 }
21
22- if (mtk_wed_device_attach(wed))
23+ if (mtk_wed_device_attach(wed)) {
24+ wed_enable = false;
25+ dev->has_rro = false;
26 return 0;
27+ }
28
29 *irq = wed->irq;
30 dev->mt76.dma_dev = wed->dev;
31--
322.45.2
33