From 994efc0b92e624ec7ff699a3720ed8b510295a5e Mon Sep 17 00:00:00 2001 From: Fabrice DJIATSA Date: Fri, 6 Jun 2025 09:51:57 +0200 Subject: [PATCH] drivers: spi: update error type to skip word_size testcases Workaround to avoid getting the -EFAULT (14) error when running the test_spi_word_size_x (x = 7, 9, 24) test cases: Since these testcase configurations aren't supported, update the error type to ENOTSUP to allow skipping the test cases using ztest. Signed-off-by: Fabrice DJIATSA --- drivers/spi/spi_ll_stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */