From 254a63bc925ca199c8a89858ed330d99591f2f90 Mon Sep 17 00:00:00 2001 From: Michal Morsisko Date: Sun, 1 Sep 2024 22:24:57 +0200 Subject: [PATCH] drivers: spi_bitbang: Make SPI_LINES_OCTAL explicitly unsupported flag Prevent the driver from perfroming transfer when SPI_LINES_OCTAL flag is specified, as this driver supports only SPI_LINES_DUAL for now. Signed-off-by: Michal Morsisko --- drivers/spi/spi_bitbang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi_bitbang.c b/drivers/spi/spi_bitbang.c index 137f63b89b0e23c..cce0dd1d0faa241 100644 --- a/drivers/spi/spi_bitbang.c +++ b/drivers/spi/spi_bitbang.c @@ -36,7 +36,7 @@ static int spi_bitbang_configure(const struct spi_bitbang_config *info, return -ENOTSUP; } - if (config->operation & (SPI_LINES_DUAL | SPI_LINES_QUAD)) { + if (config->operation & (SPI_LINES_DUAL | SPI_LINES_QUAD | SPI_LINES_OCTAL)) { LOG_ERR("Unsupported configuration"); return -ENOTSUP; }