Skip to content

Commit

Permalink
drivers: spi: spi_mcux_ecspi: Fix data size when using 16/32 bit tran…
Browse files Browse the repository at this point in the history
…sfers

The data size is set using a burst length, the data size for 8/16/32 is
always 1 in those cases.

Signed-off-by: Pieter De Gendt <[email protected]>
(cherry picked from commit 0e8aed7)
  • Loading branch information
pdgendt authored and github-actions[bot] committed Jan 15, 2025
1 parent 19f66ec commit 2b6e0dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/spi/spi_mcux_ecspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ static void spi_mcux_transfer_next_packet(const struct device *dev)
transfer.txData = NULL;
}

transfer.dataSize = data->dfs;
/* Burst length is set in the configure step */
transfer.dataSize = 1;

status = ECSPI_MasterTransferNonBlocking(base, &data->handle, &transfer);
if (status != kStatus_Success) {
Expand Down

0 comments on commit 2b6e0dd

Please sign in to comment.