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 0ed9842180 drivers/can/mcp2515.c Fix: add missing spi configuration in
mcp2515_reset_lowlevel
0ed9842180 is described below
commit 0ed9842180e22b5adce744c139e8b83bab8fd419
Author: paolovolpi <[email protected]>
AuthorDate: Thu Jun 1 11:36:30 2023 +0200
drivers/can/mcp2515.c Fix: add missing spi configuration in
mcp2515_reset_lowlevel
---
drivers/can/mcp2515.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/can/mcp2515.c b/drivers/can/mcp2515.c
index 62a104aa97..0900224ec2 100644
--- a/drivers/can/mcp2515.c
+++ b/drivers/can/mcp2515.c
@@ -1196,6 +1196,7 @@ static void mcp2515_reset_lowlevel(FAR struct
mcp2515_can_s *priv)
/* Send SPI reset command to MCP2515 */
SPI_LOCK(config->spi, true);
+ mcp2515_config_spi(priv);
SPI_SELECT(config->spi, SPIDEV_CANBUS(config->devid), true);
SPI_SEND(config->spi, MCP2515_RESET);
SPI_SELECT(config->spi, SPIDEV_CANBUS(config->devid), false);