drivers/spi: Return an error on SPI_HALF_DUPLEX for relevant drivers

This feature will need to be, however, implemented driver by driver
afterwards.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2021-09-09 16:16:59 +02:00 committed by Carles Cufí
commit 01b9813d73
20 changed files with 98 additions and 0 deletions

View file

@ -575,6 +575,11 @@ static int spi_mcux_configure(const struct device *dev,
return 0;
}
if (spi_cfg->operation & SPI_HALF_DUPLEX) {
LOG_ERR("Half-duplex not supported");
return -ENOTSUP;
}
DSPI_MasterGetDefaultConfig(&master_config);
master_config.whichPcs = spi_cfg->slave;