OSDN Git Service

wifi: mt76: mt7915: set sku initial value to zero
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Fri, 6 Jan 2023 02:44:11 +0000 (10:44 +0800)
committerFelix 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

index 686c9bb..2ac0a0f 100644 (file)
@@ -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)