mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: introduce mt76_mcu_restart macro
Use common function wrapper in mt76x02_watchdog_reset Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
be8f0394e3
commit
9a9c6569e9
+1
-1
@@ -479,7 +479,7 @@ static void mt76x02_watchdog_reset(struct mt76x02_dev *dev)
|
||||
mt76_set(dev, 0x734, 0x3);
|
||||
|
||||
if (restart)
|
||||
dev->mt76.mcu_ops->mcu_restart(&dev->mt76);
|
||||
mt76_mcu_restart(dev);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(dev->mt76.q_tx); i++)
|
||||
mt76_queue_tx_cleanup(dev, i, true);
|
||||
|
||||
Reference in New Issue
Block a user