drivers: spi: rv32m1_lpspi: Fix null tx

Initialize the dummy data transfer so spi transfer is defined even for
an undefined tx data buffer. This aligns the rv32m1 spi driver with the
mcux spi driver.

Signed-off-by: Karsten Koenig <karsten.koenig.030@gmail.com>
This commit is contained in:
Karsten Koenig 2020-06-10 18:36:15 +02:00 committed by Ioannis Glaropoulos
commit 189ae8c890

View file

@ -191,6 +191,8 @@ static int spi_mcux_configure(struct device *dev,
LPSPI_MasterTransferCreateHandle(base, &data->handle,
spi_mcux_master_transfer_callback, dev);
LPSPI_SetDummyData(base, 0);
data->ctx.config = spi_cfg;
spi_context_cs_configure(&data->ctx);