This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 8b27e455b1 drivers/can/mcp2515.c Fix Missing Chipselect de-assert
before bus unlocking
8b27e455b1 is described below
commit 8b27e455b151da801c400993c1454948d6345a16
Author: paolovolpi <[email protected]>
AuthorDate: Thu May 25 17:16:57 2023 +0200
drivers/can/mcp2515.c Fix Missing Chipselect de-assert before bus unlocking
---
drivers/can/mcp2515.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/can/mcp2515.c b/drivers/can/mcp2515.c
index 21554b2b42..82e05132cb 100644
--- a/drivers/can/mcp2515.c
+++ b/drivers/can/mcp2515.c
@@ -1177,6 +1177,7 @@ static void mcp2515_reset_lowlevel(FAR struct
mcp2515_can_s *priv)
SPI_LOCK(config->spi, true);
SPI_SELECT(config->spi, SPIDEV_CANBUS(0), true);
SPI_SEND(config->spi, MCP2515_RESET);
+ SPI_SELECT(config->spi, SPIDEV_CANBUS(0), false);
SPI_LOCK(config->spi, false);
/* Wait 1ms to let MCP2515 restart */