From e40cbfd589fabd9793e2730c25eff8f24a6eb9dd Mon Sep 17 00:00:00 2001 From: Richard Tucker Date: Tue, 18 Jun 2024 14:29:39 +1000 Subject: [PATCH] drivers/can/sja1000: fix cmd register write --- drivers/can/sja1000.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/can/sja1000.c b/drivers/can/sja1000.c index d305f05cc5..7b01a01087 100644 --- a/drivers/can/sja1000.c +++ b/drivers/can/sja1000.c @@ -286,7 +286,8 @@ static void sja1000_reset(struct can_dev_s *dev) * Command register can only be modified when in Operation Mode. */ - sja1000_write_cmdreg(priv, SJA1000_ABORT_TX_M | SJA1000_CLR_OVERRUN_M); + sja1000_putreg(priv, + SJA1000_CMD_REG, SJA1000_ABORT_TX_M | SJA1000_CLR_OVERRUN_M); #ifdef CONFIG_ARCH_HAVE_MULTICPU spin_unlock_irqrestore(&priv->lock, flags);