mt76: mt7921s: fix possible sdio deadlock in command fail
authorDeren Wu <deren.wu@mediatek.com>
Tue, 14 Jun 2022 07:50:24 +0000 (15:50 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:02 +0000 (13:40 +0200)
commit364718c94ac2ea4e51958ac0aa15c9092c785a3a
tree1a69151bd6d0cd7ee9effa2309b6029b1485e627
parentf4a92547fb9818ff272e1e2f0c79cd6b0bc99ce8
mt76: mt7921s: fix possible sdio deadlock in command fail

Move sdio_release_host() to final resource handing

Fixes: b12deb5e86fa ("mt76: mt7921s: fix mt7921s_mcu_[fw|drv]_pmctrl")
Reported-by: YN Chen <YN.Chen@mediatek.com>
Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c