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:
parent
4855eaa735
commit
189ae8c890
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue