OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e766b7f
)
wifi: mt76: mt7915: set sku initial value to zero
author
Peter Chiu
<chui-hao.chiu@mediatek.com>
Fri, 6 Jan 2023 02:44:11 +0000
(10:44 +0800)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 3 Feb 2023 13:47:16 +0000
(14:47 +0100)
Set sku initial value before mcu starts to prevent mcu from getting an
invalid value.
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/soc.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
b/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
index
686c9bb
..
2ac0a0f
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/soc.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/soc.c
@@
-883,6
+883,8
@@
static int mt7986_wmac_wm_enable(struct mt7915_dev *dev, bool enable)
{
u32 cur;
+ mt76_wr(dev, MT_CONNINFRA_SKU_DEC_ADDR, 0);
+
mt76_rmw_field(dev, MT7986_TOP_WM_RESET,
MT7986_TOP_WM_RESET_MASK, enable);
if (!enable)