RE: [PATCH v3 1/6] soc: renesas: rz-sysc: add syscon/regmap support

From: John Madieu
Date: Thu Mar 27 2025 - 08:03:09 EST


Hi Geert,

Thanks once more for the feedback.

> -----Original Message-----
> From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Sent: Monday, March 17, 2025 4:13 PM
> To: John Madieu <john.madieu.xa@xxxxxxxxxxxxxx>
> Subject: Re: [PATCH v3 1/6] soc: renesas: rz-sysc: add syscon/regmap
> support
>
> On Sat, 15 Mar 2025 at 09:12, John Madieu <john.madieu.xa@xxxxxxxxxxxxxx>
> wrote:
> > The RZ/G3E system controller has various registers that control or
> > report some properties specific to individual IPs. The regmap is
> > registered as a syscon device to allow these IP drivers to access the
> > registers through the regmap API.
> >
> > As other RZ SoCs might have custom read/write callbacks or
> > max-offsets, let's register a custom regmap configuration.
> >
> > Signed-off-by: John Madieu <john.madieu.xa@xxxxxxxxxxxxxx>
>
> > --- a/drivers/soc/renesas/rz-sysc.c
> > +++ b/drivers/soc/renesas/rz-sysc.c
> > @@ -6,8 +6,10 @@
> > */
> >
> > #include <linux/io.h>
> > +#include <linux/mfd/syscon.h>
> > #include <linux/of.h>
> > #include <linux/platform_device.h>
> > +#include <linux/regmap.h>
> > #include <linux/sys_soc.h>
> >
> > #include "rz-sysc.h"
> > @@ -81,6 +83,14 @@ static int rz_sysc_soc_init(struct rz_sysc *sysc,
> const struct of_device_id *mat
> > return 0;
> > }
> >
> > +static struct regmap_config rz_sysc_regmap = {
>
> WARNING: struct regmap_config should normally be const
>
> Aborting review, new version has been posted...

Since I sent a v4 while you were reviewing this v3, I've received
Rb tags on two patches from Krzysztof on the v4.

I'll then send a v5 which would include this warning fix as well as
the Rb tags I've received. I hope this is Ok for you.

>
> Gr{oetje,eeting}s,
>
> Geert
>

Regards,
John