Re: [PATCH 1/8] spi: stm32: properly handle 0 byte transfer

2021-02-05 Thread Mark Brown
On Fri, Feb 05, 2021 at 12:08:55PM +0100, Alain Volmat wrote: > On 0 byte transfer request, return straight from the > xfer function after finalizing the transfer. > + if (transfer->len == 0) { > + spi_finalize_current_transfer(master); > + return 0; The driver only ne

[PATCH 1/8] spi: stm32: properly handle 0 byte transfer

2021-02-05 Thread Alain Volmat
On 0 byte transfer request, return straight from the xfer function after finalizing the transfer. Fixes: dcbe0d84dfa5 ("spi: add driver for STM32 SPI controller") Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/spi/spi-stm