summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Büsch <m@bues.ch>2011-07-04 19:51:11 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-07-05 15:26:59 -0400
commit73e6cdcf479ce3a8d33a726f0477473db35a4b2e (patch)
treec44422c46263f774cbc5f3d211df309ecddb590f /drivers
parent14205aa21c8041d7e940ee9bcde87824dc00a08a (diff)
downloadop-kernel-dev-73e6cdcf479ce3a8d33a726f0477473db35a4b2e.zip
op-kernel-dev-73e6cdcf479ce3a8d33a726f0477473db35a4b2e.tar.gz
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 <m@bues.ch> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/b43/dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c
index d02cf83..7a09a46 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;
}
OpenPOWER on IntegriCloud