mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: fix mt7615_firmware_own for mt7663e
Check the firmware-own configuration has been applied polling
MT_CONN_HIF_ON_LPCTL register
Fixes: f40ac0f3d3c0 ("mt76: mt7615: introduce mt7663e support")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
da329ef776
commit
facf74fd50
+2
-3
@@ -1717,9 +1717,8 @@ static int mt7615_firmware_own(struct mt7615_dev *dev)
|
||||
|
||||
mt76_wr(dev, addr, MT_CFG_LPCR_HOST_FW_OWN);
|
||||
|
||||
if (is_mt7622(&dev->mt76) &&
|
||||
!mt76_poll_msec(dev, MT_CFG_LPCR_HOST,
|
||||
MT_CFG_LPCR_HOST_FW_OWN,
|
||||
if (!is_mt7615(&dev->mt76) &&
|
||||
!mt76_poll_msec(dev, addr, MT_CFG_LPCR_HOST_FW_OWN,
|
||||
MT_CFG_LPCR_HOST_FW_OWN, 3000)) {
|
||||
dev_err(dev->mt76.dev, "Timeout for firmware own\n");
|
||||
return -EIO;
|
||||
|
||||
Reference in New Issue
Block a user