RE: [PATCH 0/3] Add support for Renesas CAN-FD Bus-Off recovery mode selection

From: Biju Das

Date: Sat Apr 25 2026 - 14:49:34 EST


Hi Marc,

Thanks for the feedback.

> -----Original Message-----
> From: Biju Das
> Sent: 07 April 2026 12:12
> Subject: RE: [PATCH 0/3] Add support for Renesas CAN-FD Bus-Off recovery mode selection
>
> Hi Marc Kleine-Budde,
>
> Thanks for the feedback.
>
> > -----Original Message-----
> > From: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
> > Sent: 03 April 2026 22:45
> > Subject: Re: [PATCH 0/3] Add support for Renesas CAN-FD Bus-Off
> > recovery mode selection
> >
> > On 03.04.2026 10:49:57, Biju wrote:
> > > From: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> > >
> > > The CAN-FD IP supports the below Bus-Off recovery modes:
> > > 1) ISO11898-1 compliant
> > > 2) Entry to Channel Halt mode automatically at bus-off entry
> > > 3) Entry to Channel Halt mode automatically at bus-off end
> > > 4) Entry to Channel Halt mode (in bus-off state) by program request
> > >
> > > Add support for Bus-Off recovery mode selection via the
> > > renesas,bus-off-recovery-mode device tree property. If the property
> > > is absent, it defaults to RCANFD_CCTR_BOM_BENTRY (entry to Channel
> > > Halt mode automatically at bus-off entry) for backward compatibility.
> >

> >
> > What the Linux driver should do is once the HW is in bus off mode,
> > switch off the HW and let the .do_set_mode(CAN_MODE_START) callback restart the hardware.

Some queries,

But this callback is called from can_restart().

How one can call can_restart(), when IP triggers bus-off recovery
interrupt?

Also, how can we synchronize the CAN restart with restart_ms() and
automatic HW recovery?

Cheers,
Biju