blob: 3c5755d8c44e2f47ff7596b4e7b92729c792652c [file] [log] [blame]
developerd0c89452024-10-11 16:53:27 +08001From eccfceec92bda3da9fa815c1ec55b1c74a0f3254 Mon Sep 17 00:00:00 2001
2From: Rex Lu <rex.lu@mediatek.com>
3Date: Fri, 6 Sep 2024 15:32:05 +0800
4Subject: [PATCH 194/223] mtk: mt76: mt7996: Fix call trace happened when wed
5 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
15index c84c1bbb..8eff971d 100644
16--- 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