From b9ec30f129aeaa97eb78d981d8a312c5e4b1a4e7 Mon Sep 17 00:00:00 2001 From: Wenbin Zhang Date: Fri, 6 Jun 2025 23:10:34 +0800 Subject: [PATCH] drivers: spi_ll_stm32: Add LOG to indicate that DMA cannot be enabled Add LOG to indicate the reason why DMA cannot be enabled Signed-off-by: Wenbin Zhang --- drivers/spi/spi_ll_stm32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi_ll_stm32.c b/drivers/spi/spi_ll_stm32.c index 366b59a9b00..b36405fcbf4 100644 --- a/drivers/spi/spi_ll_stm32.c +++ b/drivers/spi/spi_ll_stm32.c @@ -1121,6 +1121,7 @@ static int transceive_dma(const struct device *dev, #ifdef CONFIG_DCACHE 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; } #endif /* CONFIG_DCACHE */