Commit 2d681047 authored by Felix Fietkau's avatar Felix Fietkau

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: default avatarFelix Fietkau <nbd@nbd.name>
parent c32011bb
...@@ -143,6 +143,7 @@ mt76_dma_sync_idx(struct mt76_dev *dev, struct mt76_queue *q) ...@@ -143,6 +143,7 @@ mt76_dma_sync_idx(struct mt76_dev *dev, struct mt76_queue *q)
static void static void
mt76_dma_kick_queue(struct mt76_dev *dev, struct mt76_queue *q) mt76_dma_kick_queue(struct mt76_dev *dev, struct mt76_queue *q)
{ {
wmb();
writel(q->head, &q->regs->cpu_idx); writel(q->head, &q->regs->cpu_idx);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment