From: Michael Büsch Date: Mon, 4 Jul 2011 17:51:11 +0000 (+0200) Subject: b43: Add RX side DMA memory barrier X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73e6cdcf479ce3a8d33a726f0477473db35a4b2e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git b43: Add RX side DMA memory barrier This adds a memory barrier to ensure the writes to the ring memory are committed before the DMA ring pointer is updated. We do a similar thing on the TX side already. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c index d02cf8300e3e..7a09a467339c 100644 --- a/drivers/net/wireless/b43/dma.c +++ b/drivers/net/wireless/b43/dma.c @@ -1600,6 +1600,7 @@ void b43_dma_rx(struct b43_dmaring *ring) dma_rx(ring, &slot); update_max_used_slots(ring, ++used_slots); } + wmb(); ops->set_current_rxslot(ring, slot); ring->current_slot = slot; }