rpmsg_port_spi: set mreq to high to trigger next transmission

rpmsg_port_spi_connect can not be used here because peer may have not finished
the last transmission which will keep the sreq gpio in high level, and it will
read an error data frame.

Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
liaoao 2024-08-20 19:27:00 +08:00 committed by Xiang Xiao
parent 88e0aeaad4
commit 4d35c60ba6

View File

@ -365,7 +365,10 @@ rpmsg_port_spi_process_packet(FAR struct rpmsg_port_spi_s *rpspi,
if (!rpspi->connected) if (!rpspi->connected)
{ {
rpmsg_port_unregister(&rpspi->port); rpmsg_port_unregister(&rpspi->port);
rpmsg_port_spi_connect(rpspi);
/* Trigger a transmission for reconnection */
IOEXP_WRITEPIN(rpspi->ioe, rpspi->mreq, 1);
} }
else else
{ {