Revert "drivers/spi: stm32: fix TX-only mode"

This reverts commit 31cd3b1f61.

This change is causing regression in SPI loopback tests.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
Erwan Gouriou 2023-09-12 13:54:09 +02:00 committed by Fabio Baltieri
commit 9b56e8ac63

View file

@ -324,10 +324,8 @@ static void spi_stm32_shift_m(SPI_TypeDef *spi, struct spi_stm32_data *data)
spi_context_update_tx(&data->ctx, 2, 1);
}
if (spi_context_rx_buf_on(&data->ctx)) {
while (!ll_func_rx_is_not_empty(spi)) {
/* NOP */
}
while (!ll_func_rx_is_not_empty(spi)) {
/* NOP */
}
if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) {