Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] clk: Improve consumer field in debugfs clk_summary
@ 2026-12-02  8:50 Geert Uytterhoeven
  2026-12-02  8:50 ` [PATCH v2 1/6] clk: Remove unused clk.dev Geert Uytterhoeven
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02  8:50 UTC (permalink / raw)
  To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Russell King, Paul Walmsley, Stephen Boyd,
	Brian Masney, Jerome Brunet, Sandy Huang, Heiko Stübner,
	Andy Yan, Chaoyi Chen, Damon Ding, Ulf Hansson
  Cc: linux-clk, linux-renesas-soc, linux-rockchip, linux-omap,
	linux-arm-kernel, dri-devel, linux-pm, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

	Hi all,

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
of_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 of_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 of_dev_clk_get_from_provider()
    function,
  - Patches 3-6 convert users to the new helper:
      - The Renesas clock patch was tested on a variety of 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 submitted patches.

Changes compared to v1:
  - Add Reviewed-by, Tested-by,
  - Add "of_"-prefix,
  - Add missing "the",
  - Fix R-Car X5H clk_summary change snippet,
  - Update dependency.

I plan to queue the first tree patches in renesas-clk for v7.5.
The other patches can be postponed until they have been tested, or
until their dependencies have landed.

Thanks for your comments!

Geert Uytterhoeven (6):
  clk: Remove unused clk.dev
  clk: Add of_dev_clk_get_from_provider()
  clk: renesas: Convert to of_dev_clk_get_from_provider()
  [RFT] drm/rockchip: dw_hdmi: Convert to of_dev_clk_get_from_provider()
  [RFT] ARM: OMAP2+: Convert to of_dev_clk_get_from_provider()
  [RFC] pmdomain: renesas: r8a78000: Convert to
    of_dev_clk_get_from_provider()

 arch/arm/mach-omap2/omap_device.c           |  2 +-
 arch/arm/mach-omap2/omap_hwmod.c            |  3 ++-
 drivers/clk/clk.c                           | 23 ++++++++++-----------
 drivers/clk/clk.h                           | 11 ++++------
 drivers/clk/clkdev.c                        | 14 ++++---------
 drivers/clk/renesas/clk-mstp.c              |  2 +-
 drivers/clk/renesas/r9a06g032-clocks.c      |  2 +-
 drivers/clk/renesas/renesas-cpg-mssr.c      |  2 +-
 drivers/clk/renesas/rzg2l-cpg.c             |  2 +-
 drivers/clk/renesas/rzv2h-cpg.c             |  2 +-
 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c |  3 ++-
 drivers/pmdomain/renesas/r8a78000-mdlc.c    |  2 +-
 include/linux/clk.h                         | 10 +++++++--
 13 files changed, 38 insertions(+), 40 deletions(-)

-- 
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-02  8:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  8:50 [PATCH v2 0/6] clk: Improve consumer field in debugfs clk_summary Geert Uytterhoeven
2026-12-02  8:50 ` [PATCH v2 1/6] clk: Remove unused clk.dev Geert Uytterhoeven
2026-12-02  8:50 ` [PATCH v2 2/6] clk: Add of_dev_clk_get_from_provider() Geert Uytterhoeven
2026-12-02  8:50 ` [PATCH v2 3/6] clk: renesas: Convert to of_dev_clk_get_from_provider() Geert Uytterhoeven
2026-12-02  8:50 ` [PATCH v2 5/6] [RFT] drm/rockchip: dw_hdmi: " Geert Uytterhoeven
2026-12-02  8:50 ` [PATCH v2 4/6] [RFT] ARM: OMAP2+: " Geert Uytterhoeven
2026-12-02  8:50 ` [PATCH v2 6/6] [RFC] pmdomain: renesas: r8a78000: " Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox