commit | 3c5411a40eef797cb90a979e94574d3e31f24895 | [log] [tgz] |
---|---|---|
author | Christophe Kerello <christophe.kerello@foss.st.com> | Wed May 04 11:14:55 2022 +0200 |
committer | Yann Gautier <yann.gautier@st.com> | Wed May 11 10:01:17 2022 +0200 |
tree | f96a7ddf8c5ddb9ada003d2901e3c1a13b2abe16 | |
parent | 67259f82bc6f2e97e8472127ee0d29b78f11adfd [diff] |
fix(st-spi): 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. Change-Id: I99c4145e639c1b842feb3690dd78329179c18132 Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>