drivers/can/sja1000: fix cmd register write

This commit is contained in:
Richard Tucker 2024-06-18 14:29:39 +10:00 committed by Xiang Xiao
parent 07463e2de1
commit e40cbfd589
1 changed files with 2 additions and 1 deletions

View File

@ -286,7 +286,8 @@ static void sja1000_reset(struct can_dev_s *dev)
* Command register can only be modified when in Operation Mode. * 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 #ifdef CONFIG_ARCH_HAVE_MULTICPU
spin_unlock_irqrestore(&priv->lock, flags); spin_unlock_irqrestore(&priv->lock, flags);