Skip to content

Commit

Permalink
b43: Add RX side DMA memory barrier
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
mbuesch authored and linvjw committed Jul 5, 2011
1 parent 14205aa commit 73e6cdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/b43/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 73e6cdc

Please sign in to comment.