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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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);
}
}