mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: fix hardware error recovery for mt7663
MT7663 uses different bits for communicating reset commands/status between MCU and host. Also add an extra initial reset command. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -47,6 +47,12 @@ static int mt7615_init_hardware(struct mt7615_dev *dev)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (is_mt7663(&dev->mt76)) {
|
||||
/* Reset RGU */
|
||||
mt76_clear(dev, MT_MCU_CIRQ_IRQ_SEL(4), BIT(1));
|
||||
mt76_set(dev, MT_MCU_CIRQ_IRQ_SEL(4), BIT(1));
|
||||
}
|
||||
|
||||
ret = mt7615_dma_init(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user