]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mt76: mt792x: fix wifi init fail by setting MCU_RUNNING after CLC load
authorQuan Zhou <quan.zhou@mediatek.com>
Tue, 18 Nov 2025 11:54:54 +0000 (19:54 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 24 Nov 2025 14:01:30 +0000 (15:01 +0100)
commit066f417be5fd8c7fe581c5550206364735dad7a3
tree576f5b6bad1017cb7fe03657ce757ca19f6be514
parentf804a5895ebad2b2d4fb8a3688d2115926e993d5
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 <quan.zhou@mediatek.com>
Reviewed-by: druth@chromium.org
Link: https://patch.msgid.link/19ec8e4465142e774f17801025accd0ae2214092.1763465933.git.quan.zhou@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c