Skip to content

Commit 0a5427b

Browse files
iandmorrisjhedberg
authored andcommitted
drivers: spi: renesas_ra8: fix for issue with gpio based chip select
This patch fixes an issue in the SPI driver that caused the chip select line to remain low after a transaction completed (when using a GPIO and operating in non-interrupt mode). Signed-off-by: Ian Morris <[email protected]>
1 parent 9aeb7e7 commit 0a5427b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spi_b_renesas_ra8.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ static int transceive(const struct device *dev, const struct spi_config *config,
364364

365365
/* Disable the SPI Transfer. */
366366
p_spi_reg->SPCR_b.SPE = 0;
367+
368+
spi_context_cs_control(&data->ctx, false);
367369
#endif
368370
#ifdef CONFIG_SPI_SLAVE
369371
if (spi_context_is_slave(&data->ctx) && !ret) {

0 commit comments

Comments
 (0)