mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921s: fix bus hang with wrong privilege
Accroding to chip hw flow, mt7921s need to re-acquire privilege again before normal running. Otherwise, the bus may be stuck in an abnormal status. Tested-by: Leon Yen <[email protected]> Co-developed-by: Eric-SY Chang <[email protected]> Signed-off-by: Eric-SY Chang <[email protected]> Co-developed-by: YN Chen <[email protected]> Signed-off-by: YN Chen <[email protected]> Signed-off-by: Deren Wu <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -720,6 +720,17 @@ static int mt7921_load_patch(struct mt7921_dev *dev)
|
||||
if (ret)
|
||||
dev_err(dev->mt76.dev, "Failed to start patch\n");
|
||||
|
||||
if (mt76_is_sdio(&dev->mt76)) {
|
||||
/* activate again */
|
||||
ret = __mt7921_mcu_fw_pmctrl(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = __mt7921_mcu_drv_pmctrl(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
out:
|
||||
sem = mt76_connac_mcu_patch_sem_ctrl(&dev->mt76, false);
|
||||
switch (sem) {
|
||||
|
||||
Reference in New Issue
Block a user