developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 1 | From 5a9d5f2a8120137d5b7de535031325139d54a1e5 Mon Sep 17 00:00:00 2001 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 2 | From: Rex Lu <rex.lu@mediatek.com> |
| 3 | Date: Fri, 6 Sep 2024 15:32:05 +0800 |
developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 193/193] mtk: mt76: mt7996: Fix call trace happened when wed |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 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 |
developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 15 | index c84c1bb..8eff971 100644 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 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 | |