[PATCH v4 10/15] can: grcan: Add saving and restoring of CAN FD baud-rate registers

Arun Muthusamy
2026-01-28T14:49:33Z

From: Daniel Hellstrom <daniel@gaisler.com>

While reset the GRCAN baud-rates are preserved, since GRCANFD has the
baud-rate in different registers we need to add saving of those
registers too.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: Arun Muthusamy <arun.muthusamy@gaisler.com>
---
drivers/net/can/grcan.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c
index 13dc4989f067..0ceda12335bc 100644
--- a/drivers/net/can/grcan.c
+++ b/drivers/net/can/grcan.c
@@ -525,6 +525,8 @@ static void grcan_reset(struct net_device *dev)

/* Turn off hardware filtering - regs->rxcode set to 0 by reset */
grcan_write_reg(&regs->rxmask, 0);
+
+ priv->hwcap->set_bittiming(dev);
}

/* stop device without changing any configurations */
--
2.51.0