Commit 70526e0b authored by Alain Volmat's avatar Alain Volmat Committed by Mark Brown

spi: stm32: Revert "properly handle 0 byte transfer"

0 byte transfer handling is now done within the core in code added
by commit b3063203 ("spi: Skip zero-length transfers in spi_transfer_one_message()")

This reverts commit 2269f5a8 ("spi: stm32: properly handle 0 byte transfer")
Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
Link: https://lore.kernel.org/r/1625646426-5826-5-git-send-email-alain.volmat@foss.st.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9d535414
......@@ -1647,10 +1647,6 @@ static int stm32_spi_transfer_one(struct spi_master *master,
struct stm32_spi *spi = spi_master_get_devdata(master);
int ret;
/* Don't do anything on 0 bytes transfers */
if (transfer->len == 0)
return 0;
spi->tx_buf = transfer->tx_buf;
spi->rx_buf = transfer->rx_buf;
spi->tx_len = spi->tx_buf ? transfer->len : 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment