RE: [PATCH v3 08/11] can: rcar_canfd: Add shift table to struct rcar_canfd_hw_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marc,

> -----Original Message-----
> From: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
> Sent: 25 February 2025 15:51
> Subject: Re: [PATCH v3 08/11] can: rcar_canfd: Add shift table to struct rcar_canfd_hw_info
> 
> On 25.02.2025 15:40:47, Biju Das wrote:
> > R-Car Gen3 and Gen4 has some differences in the shift bits. Add a
> > shift table to handle these differences. After this drop the unused
> > functions reg_gen4() and is_gen4().
> >
> > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> > ---
> > v3:
> >  * New patch.
> > ---
> >  drivers/net/can/rcar/rcar_canfd.c | 78
> > ++++++++++++++++++++++---------
> >  1 file changed, 56 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/net/can/rcar/rcar_canfd.c
> > b/drivers/net/can/rcar/rcar_canfd.c
> > index fcf5cb93f57c..09a9e548b022 100644
> > --- a/drivers/net/can/rcar/rcar_canfd.c
> > +++ b/drivers/net/can/rcar/rcar_canfd.c
> 
> [...]
> 
> > +enum rcar_canfd_shift_id {
> > +	FIRST_RNC_SH,	/* Rule Number for Channel x */
> > +	SECOND_RNC_SH,	/* Rule Number for Channel x + 1 */
> > +	NTSEG2_SH,	/* Nominal Bit Rate Time Segment 2 Control */
> > +	NTSEG1_SH,	/* Nominal Bit Rate Time Segment 1 Control */
> > +	NSJW_SH,	/* Nominal Bit Rate Resynchronization Jump Width Control */
> > +	DTSEG2_SH,	/* Data Bit Rate Time Segment 2 Control */
> > +	DTSEG1_SH,	/* Data Bit Rate Time Segment 1 Control */
> > +	CFTML_SH,	/* Common FIFO TX Message Buffer Link */
> > +	CFM_SH,		/* Common FIFO Mode */
> > +	CFDC_SH,	/* Common FIFO Depth Configuration */
> > +};
> 
> Please add a common prefix to the enums, i.e. RCANFD_.

OK, will fix this in next version.

Cheers,
Biju




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux