Skip to content
Commit a6d7eeb6 authored by Patrice Chotard's avatar Patrice Chotard Committed by Patrick Delaunay
Browse files

spi: stm32_qspi: Always check SR_TCF flags in stm32_qspi_wait_cmd()



Currently, SR_TCF flag is checked in case there is data, this criteria
is not correct.

SR_TCF flags is set when programmed number of bytes have been transferred
to the memory device ("bytes" comprised command and data send to the
SPI device).
So even if there is no data, we must check SR_TCF flag.

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: default avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
parent 0adf10a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment