mt76: mt7921: reduce the mutex lock scope during reset
authorSean Wang <sean.wang@mediatek.com>
Sun, 26 Jun 2022 23:27:06 +0000 (07:27 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:03 +0000 (13:40 +0200)
commit5163150a47af58e32940e5b223b97928ecae2b89
treebf6d85e2f0a3bff8dfca6537297229e8ea73a951
parentaf1c9bb282861386dfa73e8f2d9bdb0dde5db481
mt76: mt7921: reduce the mutex lock scope during reset

Reduce the mutex lock scope for reset to get rid of possible task hung
e.g wpa_supplicant and to allow the user-space process to keep running
during we need more retries to complete the reset.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Suggested-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c