summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2022-08-15 07:37:14 +0800
committerFelix Fietkau <nbd@nbd.name>2022-09-15 12:54:02 +0200
commitb78f67bf59baaf22a90481dabbf3ee29dd96c970 (patch)
treec2d7897f607194ca52ab8500ecec1913a4fdd0b1 /drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c
parent5473bdb40c5398e7917ec2bb27d8467acf8d9331 (diff)
wifi: mt76: mt7921: get rid of the false positive reset
False positive reset would be possibly triggered by those commands we applied in suspend with HZ MCU timeout, especially it happened when we enabled kernel log in pm core to diagnose how much time we spend in each driver during suspend procedure. So we enlarge the value and align the MCU timeout as other commands we did to reduce the false positive reset. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Acked-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c
index 5efda694fb9d..64568536c1e9 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c
@@ -30,12 +30,7 @@ mt7921_mcu_send_message(struct mt76_dev *mdev, struct sk_buff *skb,
if (ret)
return ret;
- if (cmd == MCU_UNI_CMD(HIF_CTRL) ||
- cmd == MCU_UNI_CMD(SUSPEND) ||
- cmd == MCU_UNI_CMD(OFFLOAD))
- mdev->mcu.timeout = HZ;
- else
- mdev->mcu.timeout = 3 * HZ;
+ mdev->mcu.timeout = 3 * HZ;
if (cmd == MCU_CMD(FW_SCATTER))
txq = MT_MCUQ_FWDL;