]> git.baikalelectronics.ru Git - uboot.git/commit
spi: stm32_qspi: Fix short data write operation
authorDaniil Stas <daniil.stas@posteo.net>
Sun, 23 May 2021 22:24:49 +0000 (22:24 +0000)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 18 Jun 2021 06:39:45 +0000 (08:39 +0200)
commit34be15f38e587030a2c525c6a71b0e49a889d2b9
tree307c7eea8a5ae63a33fa61f9bb68375a83f127ff
parent89be0a38ca4c593ec153beaa1be4acb313b9691c
spi: stm32_qspi: Fix short data write operation

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@posteo.net>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/spi/stm32_qspi.c