Blob Blame History Raw
From c99dc3c1524de875226528995abbb0294303bd6c Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@nbd.name>
Date: Thu, 19 Dec 2019 13:41:24 +0100
Subject: [PATCH] mt76: mt7615: increase MCU command timeout
Git-commit: c99dc3c1524de875226528995abbb0294303bd6c
References: git-fixes
Patch-mainline: v5.7-rc1

MCU_EXT_CMD_EFUSE_BUFFER_MODE needs more time on initialization, and
with only 10 seconds it sometimes runs into timeouts.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
@@ -117,7 +117,7 @@ mt7615_mcu_msg_send(struct mt76_dev *mde
 		    int len, bool wait_resp)
 {
 	struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76);
-	unsigned long expires = jiffies + 10 * HZ;
+	unsigned long expires = jiffies + 20 * HZ;
 	struct mt7615_mcu_rxd *rxd;
 	struct sk_buff *skb;
 	int ret, seq;