Skip to content
Commit 6264cfbe authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

amba_pl011: Insert mb() for correct FIFO handling



The pl011 register accessor functions use the _relaxed versions of the
standard readl() and writel() functions, meaning that there are no
automatic memory barriers. When polling a FIFO status register to check
for fullness, it is necessary to ensure that any outstanding writes have
completed; otherwise the flags are effectively stale, making it possible
that the next write is to a full FIFO.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent ef3e5758
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment