blob: 2385ac3b63cbd312a79c6ab6d8a6a209c1266190 [file] [log] [blame]
developer2aa1e642022-12-19 11:33:22 +08001From d2d8c86a980592caefe1993cbb0a75136de3ec8d Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Thu, 15 Dec 2022 17:15:49 +0800
4Subject: [PATCH 5/6] wifi: mt76: mt7915: set sku initial value to zero
5
6Set sku initial value to prevent mcu get an invalid value before mcu starts
7to run.
8
9Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
10---
11 mt7915/soc.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14diff --git a/mt7915/soc.c b/mt7915/soc.c
15index 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--
282.36.1
29