mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt792x: fix wifi init fail by setting MCU_RUNNING after CLC load
Set the MT76_STATE_MCU_RUNNING bit only after mt7921_load_clc() has successfully completed. Previously, the MCU_RUNNING state was set before loading CLC, which could cause conflict between chip mcu_init retry and mac_reset flow, result in chip init fail and chip abnormal status. By moving the state set after CLC load, firmware initialization becomes robust and resolves init fail issue. Signed-off-by: Quan Zhou <[email protected]> Reviewed-by: [email protected] Link: https://patch.msgid.link/19ec8e4465142e774f17801025accd0ae2214092.1763465933.git.quan.zhou@mediatek.com Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -646,10 +646,10 @@ int mt7921_run_firmware(struct mt792x_dev *dev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
|
||||
err = mt7921_load_clc(dev, mt792x_ram_name(dev));
|
||||
if (err)
|
||||
return err;
|
||||
set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
|
||||
|
||||
return mt7921_mcu_fw_log_2_host(dev, 1);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1054,10 +1054,10 @@ int mt7925_run_firmware(struct mt792x_dev *dev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
|
||||
err = mt7925_load_clc(dev, mt792x_ram_name(dev));
|
||||
if (err)
|
||||
return err;
|
||||
set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
|
||||
|
||||
return mt7925_mcu_fw_log_2_host(dev, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user