mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
mt76: add memory barrier to DMA queue kick
Ensure that descriptor memory has been fully written before letting the hardware read it Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
c32011bbde
commit
2d68104742
|
|
@ -143,6 +143,7 @@ mt76_dma_sync_idx(struct mt76_dev *dev, struct mt76_queue *q)
|
|||
static void
|
||||
mt76_dma_kick_queue(struct mt76_dev *dev, struct mt76_queue *q)
|
||||
{
|
||||
wmb();
|
||||
writel(q->head, &q->regs->cpu_idx);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user