developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 1 | From eccfceec92bda3da9fa815c1ec55b1c74a0f3254 Mon Sep 17 00:00:00 2001 |
| 2 | From: Rex Lu <rex.lu@mediatek.com> |
| 3 | Date: Fri, 6 Sep 2024 15:32:05 +0800 |
| 4 | Subject: [PATCH 194/223] mtk: mt76: mt7996: Fix call trace happened when wed |
| 5 | attach fail |
| 6 | |
| 7 | 1. when we attech wed0 fail, we will not going to attach wed1 |
| 8 | |
| 9 | Signed-off-by: Rex Lu <rex.lu@mediatek.com> |
| 10 | --- |
| 11 | mt7996/mmio.c | 5 ++++- |
| 12 | 1 file changed, 4 insertions(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/mt7996/mmio.c b/mt7996/mmio.c |
| 15 | index 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 | -- |
| 32 | 2.45.2 |
| 33 | |