From 6a6fc8d883ff68f4a836f28732985ecb773e05b1 Mon Sep 17 00:00:00 2001 From: liaoao Date: Wed, 26 Jun 2024 22:21:53 +0800 Subject: [PATCH] rpmsg_port_spi:init cs gpio to be low Transfer will be failure when the cs gpio status is low before the first transfer. Signed-off-by: liaoao --- drivers/rpmsg/rpmsg_port_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/rpmsg_port_spi.c b/drivers/rpmsg/rpmsg_port_spi.c index b137307399..a5413a4e0b 100644 --- a/drivers/rpmsg/rpmsg_port_spi.c +++ b/drivers/rpmsg/rpmsg_port_spi.c @@ -442,6 +442,7 @@ rpmsg_port_spi_init_hardware(FAR struct rpmsg_port_spi_s *rpspi, SPI_SETMODE(spi, spicfg->mode); SPI_SETFREQUENCY(spi, spicfg->freq); SPI_REGISTERCALLBACK(spi, rpmsg_port_spi_complete_handler, rpspi); + SPI_SELECT(spi, spicfg->devid, false); rpspi->spi = spi; rpspi->ioe = ioe;