From 0ed9842180e22b5adce744c139e8b83bab8fd419 Mon Sep 17 00:00:00 2001 From: paolovolpi Date: Thu, 1 Jun 2023 11:36:30 +0200 Subject: [PATCH] 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);