Skip to content
Commit 6cb6aa60 authored by Jagan Teki's avatar Jagan Teki
Browse files

spi: sun4i: Poll for rxfifo to be filled up



To drain rx fifo the fifo need to poll for how much data has
been filled up in rx fifo.

To achieve this, the current code is using wait_for_bit logic
on control register with exchange burst mode mask, which is not
a proper way of waiting for fifo filled up.

So, add code for polling rxfifo to be filled up using fifo
status register.

Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
Reviewed-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent 1b77de44
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