On Wed, Mar 1, 2023 at 10:56 PM Ralph Siemsen <ralph.siemsen@xxxxxxxxxx> wrote: > Add some kerneldoc comments for the structures. > > Signed-off-by: Ralph Siemsen <ralph.siemsen@xxxxxxxxxx> > --- > > Changes in v2: > - tweak a few comments > - document remaining fields of clkdesc struct > - fix typo > --- a/drivers/clk/renesas/r9a06g032-clocks.c > +++ b/drivers/clk/renesas/r9a06g032-clocks.c > @@ -29,6 +29,27 @@ > #define R9A06G032_SYSCTRL_USB_H2MODE (1<<1) > #define R9A06G032_SYSCTRL_DMAMUX 0xA0 > > +/** > + * struct r9a06g032_gate - clock-related control bits > + * @gate: clock enable/disable > + * @reset: clock module reset (active low) > + * @ready: enables NoC forwarding of read/write requests to device, > + * (eg. device is ready to handle read/write requests) > + * @midle: request to idle the NoC interconnect > + * > + * Each of these fields describes a single bit in a register, > + * which controls some aspect of clock gating. The @gate field > + * is mandatory, this one enables/disables the clock. The > + * other fields are optional, with zero indicating "not used". > + * > + * In most cases there is a @reset bit which needs to be > + * de-asserted to bring the module out of reset. > + * > + * Modules may also need to signal when the are @ready to they > + * handle requests (read/writes) from the NoC interconnect. > + * > + * Similarly, the @midle bit is used to idle the master. > + */ Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> i.e. will queue in renesas-clk-for-v6.4, with the above fixed. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx 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