]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7921s: fix suspend error with enlarging mcu timeout value
authorSean Wang <sean.wang@mediatek.com>
Wed, 15 Dec 2021 21:25:37 +0000 (05:25 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sun, 19 Dec 2021 14:24:04 +0000 (15:24 +0100)
commit239aff262c809095f5a04efc9bd4d5e43f13efa6
tree2da9dfae070804a4b1a88a5a6af8713862387aa2
parent34b7b9de1b2b0f614254b682a14b1bee9b7e0d60
mt76: mt7921s: fix suspend error with enlarging mcu timeout value

Fix the false positive suspend error that may occur on mt7921s
with enlarging mcu timeout value.

The reason why we have to enlarge mcu timeout from HZ / 3 to HZ is
we should consider the additional overhead caused by running
concurrently with btmtksdio (a MT7921 bluetooth SDIO driver) that
would compete for the same SDIO bus in process context to complete
the suspend procedure.

Fixes: d8334abcb56f ("mt76: mt7921: introduce mt7921s support")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c