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 <liaoao@xiaomi.com>
This commit is contained in:
liaoao 2024-06-26 22:21:53 +08:00 committed by Xiang Xiao
parent 6e55812e59
commit 6a6fc8d883

View File

@ -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;