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:
parent
55769dc501
commit
b9ec30f129
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue