Skip to content
Commit 0c8e4195 authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

bcm2835-mmc: Prevent DMA race condition



The end of a read operation is triggered by the completion of the DMA
transfer, but writes are complete when the data IRQ is raised. The
bcm2835-mmc driver contains a race between the handling of the DMA
completion interrupt and the submission of the next request. Fix the
race by deferring the completion of the request until the DMA
transfer finishes.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent c336fcc3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment