[PATCH 0/6] clk: Improve consumer field in debugfs clk_summary
Geert Uytterhoeven
geert at linux-m68k.org
Mon Nov 30 00:36:17 PST 2026
Hi Brian,
On Sun, 29 Nov 2026 at 22:35, Brian Masney <masneyb at kernel.org> wrote:
> On Thu, Nov 19, 2026 at 02:40:33PM +0100, Geert Uytterhoeven wrote:
> > When a driver uses of_clk_get_from_provider() to obtain clocks, the
> > latter show up as "deviceless" in the consumer column of the clk_summary
> > file in debugfs.
> >
> > This patch series aims to improve that, by introducing a new variant
> > dev_clk_get_from_provider() that also takes a consumer device.
> > When callers provide it, the consumer's name will be shown in the
> > clk_summary output.
> >
> > Sample clk_summary change snippet on R-Car H1 Marzen:
> > - sata 1 1 0 62500000 0 0 50000 Y deviceless of_clk_get_from_provider
> > + sata 1 1 0 62500000 0 0 50000 Y fc600000.sata dev_clk_get_from_provider
> >
> > Overview:
> > - The first patch removes the unused "dev" member from struct clk and
> > the "dev" parameter from clk_hw_create_clk(): it felt wrong to add
> > yet another user of clk_hw_create_clk() passing a useless device
> > pointer,
> > - The second patch introduces the new dev_clk_get_from_provider()
> > function,
> > - Patches 3-6 convert users to the new helper:
> > - The Renesas clock patch was tested on R-Car H1 and H3, and
> > should work fine on other Renesas SoCs,
> > - The Rockchip HDMI patch was only compile-tested, but is probably
> > fine, too,
> > - The OMAP2+ patch definitely needs testing,
> > - The Renesas pmdomain patch depends on work in progress.
> >
> > This series has been tested on R-Car H1, H3, and X5H.
>
> Jerome and I reviewed the core changes on patches 1 and 2. Feel free
> to add those to the Renesas clk tree if you'd like.
I had planned to send a v2 with an "of_"-prefix added to
dev_clk_get_from_provider(), and the OMAP2+ patch dropped.
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
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
More information about the Linux-rockchip
mailing list