summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRex Lu <rex.lu@mediatek.com>2026-03-12 12:57:22 +0300
committerFelix Fietkau <nbd@nbd.name>2026-03-24 18:49:31 +0300
commit9eeea2984c309f4c21c697e163abbef00c4d2b5e (patch)
treeb2aaa265309c52fb2f50c48d2edfa712ccda579d
parent22f9abaf3656cf08d36196bab950668e7fc64381 (diff)
downloadlinux-9eeea2984c309f4c21c697e163abbef00c4d2b5e.tar.xz
wifi: mt76: mt7996: adjust timeout value for boot-up calibration commands
Align the vendor driver by adjusting the timeout values for the MCU_UNI_CMD_EFUSE_CTRL and MCU_UNI_CMD_EXT_EEPROM_CTRL commands. Without this adjustment, false positive command timeout errors may occur, especially on some iPA variants. Signed-off-by: Rex Lu <rex.lu@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Link: https://patch.msgid.link/20260312095724.2117448-4-shayne.chen@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7996/mcu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
index 2a50d0758d9c..4bf22318396f 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
@@ -278,7 +278,8 @@ mt7996_mcu_set_timeout(struct mt76_dev *mdev, int cmd)
mdev->mcu.timeout = 2 * HZ;
return;
case MCU_UNI_CMD_EFUSE_CTRL:
- mdev->mcu.timeout = 20 * HZ;
+ case MCU_UNI_CMD_EXT_EEPROM_CTRL:
+ mdev->mcu.timeout = 30 * HZ;
return;
default:
break;