Skip to content

Commit b3083da

Browse files
decsnydanieldegrasse
authored andcommitted
spi_mcux_dspi: Return error if data update fails
This data update returns an error, we should propogate it where it is called if there is an error returned. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent a94a16c commit b3083da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/spi/spi_mcux_dspi.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,10 @@ static int transceive(const struct device *dev,
704704
DSPI_ClearStatusFlags(base, (uint32_t)kDSPI_AllStatusFlag);
705705
/* setup the tx buffer with end */
706706
mcux_init_inner_buffer_with_cmd(dev, 0);
707-
mcux_spi_context_data_update(dev);
707+
ret = mcux_spi_context_data_update(dev);
708+
if (ret) {
709+
goto out;
710+
}
708711
if (config->is_dma_chn_shared) {
709712
data->transfer_len = data->frame_size >> 3;
710713
} else {

0 commit comments

Comments
 (0)