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:
parent
44c723e65d
commit
9b56e8ac63
1 changed files with 2 additions and 4 deletions
|
@ -324,11 +324,9 @@ static void spi_stm32_shift_m(SPI_TypeDef *spi, struct spi_stm32_data *data)
|
||||||
spi_context_update_tx(&data->ctx, 2, 1);
|
spi_context_update_tx(&data->ctx, 2, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spi_context_rx_buf_on(&data->ctx)) {
|
|
||||||
while (!ll_func_rx_is_not_empty(spi)) {
|
while (!ll_func_rx_is_not_empty(spi)) {
|
||||||
/* NOP */
|
/* NOP */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) {
|
if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) {
|
||||||
rx_frame = LL_SPI_ReceiveData8(spi);
|
rx_frame = LL_SPI_ReceiveData8(spi);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue