Re: [PATCH RFC v2 2/9] clk: renesas: r9a09g077: Add SYSC regmap support
Geert Uytterhoeven <[email protected]>
| Newsgroups | org.kernel.vger.linux-watchdog,org.kernel.vger.linux-clk,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-renesas-soc |
|---|---|
| Message-ID | <CAMuHMdUTDRkq-WaXNxGzBLAEY90cn1i_-UOuDkS3PBs3xKooFg@mail.gmail.com> |
Hi Prabhakar, On Thu, 2 Jul 2026 at 14:31, Prabhakar <[email protected]> wrote: > From: Lad Prabhakar <[email protected]> > > Add System Controller (SYSC) regmap support for the RZ/T2H SoC. > > The RZ/T2H SoC features two System Controller (SYSC) blocks that handle > low-power management and access control. These blocks are defined as child > nodes within the Clock Pulse Generator (CPG) address space in the device > tree. Implement support for creating regmaps for these SYSC blocks. > > Register the regmap using of_syscon_register_regmap() against the CPG > device node so that consumers can access SYSC registers via the existing > syscon phandle. > > Add a sysc_init() callback to the CPG/MSSR core to allow SoC-specific > initialization of the SYSC regmap. > > Signed-off-by: Lad Prabhakar <[email protected]> > --- > v1->v2: > - Made use of for_each_child_of_node_scoped > - Moved sysc_init() to the end of the probe function Thanks for the update! > --- a/drivers/clk/renesas/r9a09g077-cpg.c > +++ b/drivers/clk/renesas/r9a09g077-cpg.c > +static int r9a09g077_sysc_init(struct device *dev) > +{ > + struct device_node *child, *np = dev->of_node; error: unused variable ‘child’ [-Werror=unused-variable] No need to resend yet. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds