Skip to content

Commit

Permalink
drivers: spi_bitbang: Make SPI_LINES_OCTAL explicitly unsupported flag
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
morsisko committed Sep 1, 2024
1 parent 8c0f598 commit 9889676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9889676

Please sign in to comment.