blob: 13bcbdc4fab858b1d947c972a56a91a5863376cc [file] [log] [blame]
developerf043db82022-12-21 14:59:23 +08001From 88bb62ee65721e2591f989e2bda3e1ab08efdf2b Mon Sep 17 00:00:00 2001
developer9851a292022-12-15 17:33:43 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Thu, 15 Dec 2022 17:15:49 +0800
developer30d39c22022-12-16 10:29:49 +08004Subject: [PATCH 5/6] wifi: mt76: mt7915: set sku initial value to zero
developer9851a292022-12-15 17:33:43 +08005
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
developer699cda22022-12-17 15:21:57 +080015index 686c9bb..2ac0a0f 100644
developer9851a292022-12-15 17:33:43 +080016--- 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--
developer699cda22022-12-17 15:21:57 +0800282.36.1
developer9851a292022-12-15 17:33:43 +080029