From: Felix Fietkau Date: Thu, 19 Dec 2019 12:41:24 +0000 (+0100) Subject: mt76: mt7615: increase MCU command timeout X-Git-Tag: block-5.7-2020-04-09~9^2~240^2^2~83 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c99dc3c1524de875226528995abbb0294303bd6c;p=linux-block.git mt76: mt7615: increase MCU command timeout 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 --- diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index fc091278d9e5..c8d6a36f5d0a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -144,7 +144,7 @@ mt7615_mcu_msg_send(struct mt76_dev *mdev, int cmd, const void *data, 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 sk_buff *skb; int ret, seq;