Skip to contentSkip to conversation

wifi: mt76: mt792x: drop redundant MCU restart before firmware download

PATCH New Emery Hsin 1 participant 1 message Nov 10

Subsystems (2)
lore
Share & tools
lore

Emery Hsin

author
#0 lore raw

PATCH 1/1 wifi: mt76: mt792x: drop redundant MCU restart before firmware download

Resetting the MCU state before firmware download is the legacy approach and causes problems on MT7928. The wfsys reset at probe already leaves the chip in a clean state, so drop the MCU restart and FW_PWR_ON poll.

Fixes 9eef868b86db ("wifi: mt76: mt792x: ensure MCU ready before ROM patch download")
---
 drivers/net/wireless/mediatek/mt76/mt792x_core.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/net/wireless/mediatek/mt76/mt792x_core.c +0 -7
index 80756aa8d99d..1965e9de7099 100644
@@ -1135,13 +1135,6 @@ int mt792x_load_firmware(struct mt792x_dev *dev)
 {
 	int ret;
 
-	mt76_connac_mcu_restart(&dev->mt76);
-
-	if (!mt76_poll_msec(dev, MT_CONN_ON_MISC, MT_TOP_MISC_FW_STATE,
-			    MT_TOP_MISC2_FW_PWR_ON, 1000))
-		dev_warn(dev->mt76.dev,
-			 "MCU is not ready for firmware download\n");
-
 	if (is_mt7928(&dev->mt76)) {
 		dev_info(dev->mt76.dev, "Loading CB firmware patch: %s\n",
 			 mt792x_cb_patch_name(dev));
Signature · 1 line
2.45.2