Skip to content

Commit d6a6b11

Browse files
decsnynashif
authored andcommitted
drivers: spi_mcux_lpspi: ErrLog dev in iodev_start
Log the device name and status if the transfer could not start, same way as in non-RTIO path. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent 47115e3 commit d6a6b11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/spi/spi_mcux_lpspi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ static void spi_mcux_iodev_start(const struct device *dev)
548548
struct rtio_sqe *sqe = &rtio_ctx->txn_curr->sqe;
549549
struct spi_dt_spec *spi_dt_spec = sqe->iodev->data;
550550
struct spi_config *spi_cfg = &spi_dt_spec->config;
551-
552551
LPSPI_Type *base = (LPSPI_Type *)DEVICE_MMIO_NAMED_GET(dev, reg_base);
553552
lpspi_transfer_t transfer;
554553
status_t status;
@@ -586,7 +585,7 @@ static void spi_mcux_iodev_start(const struct device *dev)
586585

587586
status = LPSPI_MasterTransferNonBlocking(base, &data->handle, &transfer);
588587
if (status != kStatus_Success) {
589-
LOG_ERR("Transfer could not start");
588+
LOG_ERR("Transfer could not start on %s: %d", dev->name, status);
590589
spi_mcux_iodev_complete(dev, -EIO);
591590
}
592591
}

0 commit comments

Comments
 (0)