Skip to content

Commit 994efc0

Browse files
djiatsaf-stdanieldegrasse
authored andcommitted
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 <[email protected]>
1 parent cc4e2f5 commit 994efc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_ll_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ static int transceive_dma(const struct device *dev,
11221122
if ((tx_bufs != NULL && !spi_buf_set_in_nocache(tx_bufs)) ||
11231123
(rx_bufs != NULL && !spi_buf_set_in_nocache(rx_bufs))) {
11241124
LOG_ERR("SPI DMA transfers not supported on cached memory");
1125-
return -EFAULT;
1125+
return -ENOTSUP;
11261126
}
11271127
#endif /* CONFIG_DCACHE */
11281128

0 commit comments

Comments
 (0)