diff --git a/drivers/spi/spi_ll_stm32.c b/drivers/spi/spi_ll_stm32.c index b36405fcbf4..5d56ab106b1 100644 --- a/drivers/spi/spi_ll_stm32.c +++ b/drivers/spi/spi_ll_stm32.c @@ -1122,7 +1122,7 @@ static int transceive_dma(const struct device *dev, if ((tx_bufs != NULL && !spi_buf_set_in_nocache(tx_bufs)) || (rx_bufs != NULL && !spi_buf_set_in_nocache(rx_bufs))) { LOG_ERR("SPI DMA transfers not supported on cached memory"); - return -EFAULT; + return -ENOTSUP; } #endif /* CONFIG_DCACHE */