]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mt76: mt792x: ensure MCU ready before ROM patch download
authorSean Wang <sean.wang@mediatek.com>
Thu, 19 Feb 2026 00:40:03 +0000 (18:40 -0600)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:29 +0000 (15:49 +0000)
commit9eef868b86db32d40e4a45f407af8aa1e4e4e830
treecd82fe92f79190badc1288264398672f3b7e092d
parent14a7ba034fcd9d1766503ef44cc491c6fda8db2c
wifi: mt76: mt792x: ensure MCU ready before ROM patch download

Restart the MCU and poll FW state to ensure correct MCU status
before downloading the ROM patch.

This is a prerequisite for enabling MT7902 PCIe and has been
validated on MT7921 and MT7925 since they share the common code path.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20260219004007.19733-7-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt792x_core.c