Re: [U-Boot] [PATCH v2 1/8] spi: sun4i: Poll for rxfifo empty

2019-02-14 Thread André Przywara
On 14/02/2019 08:36, Jagan Teki wrote: > To drain rx fifo the fifo need to poll till the fifo > count become empty. Thanks for the changes! Just realised, the description is somewhat misleading: We are not waiting for the FIFO count to become empty, but actually for the RX FIFO to fill up. Can

[U-Boot] [PATCH v2 1/8] spi: sun4i: Poll for rxfifo empty

2019-02-14 Thread Jagan Teki
To drain rx fifo the fifo need to poll till the fifo count become empty. 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 draining fifo. So, add code for polling fifo status register till rxfifo count become