[PATCH v10 10/24] clk: Add clock driver for the RISC-V RPMI clock service group
Rahul Pathak
rpathak at ventanamicro.com
Fri Sep 26 00:09:45 PDT 2025
On Fri, Sep 26, 2025 at 7:37 AM Paul Walmsley <pjw at kernel.org> wrote:
>
> a few minor comments:
>
> > +
> > +#define rpmi_clkrate_u64(__hi, __lo) (((u64)(__hi) << 32) | (u32)(__lo))
>
> I'd prefer to see code like this implemented as static inline functions,
> rather than macros.
>
> > +static int rpmi_clk_get_attrs(u32 clkid, struct rpmi_clk *rpmi_clk)
> > +{
>
> [ ... ]
> > +
> > + format = le32_to_cpu(resp->flags) & 3U;
>
> And similarly, it's best to pull these kinds of magic numbers up into
> appropriately-named macros, to help reviewers understand your intention.
>
> Since we're pretty close to the merge window opening, and the changes are
> minor, I've gone ahead and just made these two changes in the patch, and
> queued it for v6.18 (hopefully). But maybe you can keep them in mind for
> next time.
>
Hi Paul, sure, thanks for handling this.
Thanks
Rahul
More information about the linux-riscv
mailing list