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,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue