Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73e6cdcf authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville
Browse files

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: default avatarMichael Buesch <m@bues.ch>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 14205aa2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}