mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-25 06:39:39 +07: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