mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
dma: write cpu index after queue flush, useful for hardware resets
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -155,10 +155,12 @@ mt76_dma_tx_cleanup(struct mt76_dev *dev, enum mt76_txq_id qid, bool flush)
|
||||
if (!flush && q->tail == last)
|
||||
last = ioread32(&q->regs->dma_idx);
|
||||
}
|
||||
if (!flush)
|
||||
if (!flush) {
|
||||
mt76_txq_schedule(dev, q);
|
||||
else
|
||||
} else {
|
||||
iowrite32(q->tail, &q->regs->dma_idx);
|
||||
iowrite32(q->head, &q->regs->cpu_idx);
|
||||
}
|
||||
spin_unlock_bh(&q->lock);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user