RE: [PATCH v2 2/6] can: rcar_canfd: Add max_channels to struct rcar_canfd_hw_info

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

 



Hi Marc,

Thanks for the feedback.

> Subject: Re: [PATCH v2 2/6] can: rcar_canfd: Add max_channels to
> struct rcar_canfd_hw_info
> 
> On 26.10.2022 14:17:28, Biju Das wrote:
> > R-Car V3U supports a maximum of 8 channels whereas rest of the SoCs
> > support 2 channels.
> >
> > Add max_channels variable to struct rcar_canfd_hw_info to handle
> this
> > difference.
> >
> > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> > Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> > ---
> > v1->v2:
> >  * Replaced data type of max_channels from u32->unsigned int.
> >  * Added Rb tag from Geert.
> > ---
> >  drivers/net/can/rcar/rcar_canfd.c | 30 +++++++++++++++-------------
> --
> >  1 file changed, 15 insertions(+), 15 deletions(-)
> >
> > diff --git a/drivers/net/can/rcar/rcar_canfd.c
> > b/drivers/net/can/rcar/rcar_canfd.c
> > index 5660bf0cd755..00e06cd26487 100644
> > --- a/drivers/net/can/rcar/rcar_canfd.c
> > +++ b/drivers/net/can/rcar/rcar_canfd.c
> > @@ -525,6 +525,7 @@ struct rcar_canfd_global;
> >
> >  struct rcar_canfd_hw_info {
> >  	enum rcanfd_chip_id chip_id;
> > +	unsigned int max_channels;
> 
> You can save some bytes of you make this an u8 and the postdiv in the
> next patch, too.

Ok, will change it to u8.

Cheers,
Biju




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux