From 98896760a808489b5791823d2dcbf84c6173d7ff 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 f073881c9bd100..04b1e0f09a6d0e 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; }