Re: [PATCH] can: rcar_canfd: Change the initializing flow for clocks and resets

From: Claudiu Beznea

Date: Wed Jul 01 2026 - 07:40:38 EST




On 6/25/26 16:51, Biju wrote:
From: Tu Nguyen<tu.nguyen.xg@xxxxxxxxxxx>

Testing CANFD on RZ/G3E shows that many registers do not reset to their
initial values with the current flow of deasserting resets first and then
enabling clocks.

Based on the HW manual, clocks should be supplied first and the
resets deasserted afterward.

section 7.4.3 Procedure for Activating Modules: RZ/G2L
section 4.4.9.3 Procedure for Starting up Units: RZ/G3E

So, update the order of the initializing flow for resets and clocks
to match the hardware manual, resetting all CANFD registers to their
initial values. Also update rcar_canfd_global_deinit() to assert
resets before disabling clocks, so the teardown path mirrors the new
init ordering.

Fixes: 76e9353a80e9 ("can: rcar_canfd: Add support for RZ/G2L family")
Signed-off-by: Tu Nguyen<tu.nguyen.xg@xxxxxxxxxxx>
Signed-off-by: Biju Das<biju.das.jz@xxxxxxxxxxxxxx>

Tested-by: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>