developer | 2aa1e64 | 2022-12-19 11:33:22 +0800 | [diff] [blame^] | 1 | From d2d8c86a980592caefe1993cbb0a75136de3ec8d Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Thu, 15 Dec 2022 17:15:49 +0800 |
| 4 | Subject: [PATCH 5/6] wifi: mt76: mt7915: set sku initial value to zero |
| 5 | |
| 6 | Set sku initial value to prevent mcu get an invalid value before mcu starts |
| 7 | to run. |
| 8 | |
| 9 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 10 | --- |
| 11 | mt7915/soc.c | 2 ++ |
| 12 | 1 file changed, 2 insertions(+) |
| 13 | |
| 14 | diff --git a/mt7915/soc.c b/mt7915/soc.c |
| 15 | index 686c9bb..2ac0a0f 100644 |
| 16 | --- a/mt7915/soc.c |
| 17 | +++ b/mt7915/soc.c |
| 18 | @@ -883,6 +883,8 @@ static int mt7986_wmac_wm_enable(struct mt7915_dev *dev, bool enable) |
| 19 | { |
| 20 | u32 cur; |
| 21 | |
| 22 | + mt76_wr(dev, MT_CONNINFRA_SKU_DEC_ADDR, 0); |
| 23 | + |
| 24 | mt76_rmw_field(dev, MT7986_TOP_WM_RESET, |
| 25 | MT7986_TOP_WM_RESET_MASK, enable); |
| 26 | if (!enable) |
| 27 | -- |
| 28 | 2.36.1 |
| 29 | |