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 <freey7955@gmail.com>
This commit is contained in:
Wenbin Zhang 2025-06-06 23:10:34 +08:00 committed by Benjamin Cabé
commit b9ec30f129

View file

@ -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 */