mt76: mt7615: increase MCU command timeout
authorFelix Fietkau <nbd@nbd.name>
Thu, 19 Dec 2019 12:41:24 +0000 (13:41 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:02 +0000 (10:06 +0100)
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>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c

index fc09127..c8d6a36 100644 (file)
@@ -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;