[PATCH] spi: stm32_qspi: Fix short data write operation

Patrick DELAUNAY patrick.delaunay at foss.st.com
Tue Jun 1 17:31:56 CEST 2021


On 5/24/21 12:24 AM, Daniil Stas wrote:
> TCF flag only means that all data was sent to FIFO. To check if the
> data was sent out of FIFO we should also wait for the BUSY flag to be
> cleared. Otherwise there is a race condition which can lead to
> inability to write short (one byte long) data.
> Signed-off-by: Daniil Stas <daniil.stas at posteo.net>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> ---
>   drivers/spi/stm32_qspi.c | 29 +++++++++++++++--------------
>   1 file changed, 15 insertions(+), 14 deletions(-)

Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>


More information about the U-Boot mailing list