clk: Improve consumer field in debugfs clk_summary
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | clk: Remove unused clk.devdrivers/ drivers/ drivers/ | +13 | 1 reply | |
| 2/6 | clk: Add dev_clk_get_from_provider()drivers/ include/ | +15 | 1 reply | |
| 3/6 | clk: renesas: Convert to dev_clk_get_from_provider()drivers/ drivers/ drivers/ +2 more | +5 | 1 reply | |
| 4/6 | drm/rockchip: dw_hdmi: Convert to dev_clk_get_from_provider()drivers/ | +2 | 1 reply | |
| 5/6 | ARM: OMAP2+: Convert to dev_clk_get_from_provider()arch/ arch/ | +3 | 2 replies | |
| 6/6 | pmdomain: renesas: r8a78000: Convert to dev_clk_get_from_provider()drivers/ | +1 | 0 replies |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Brian Masney |
|---|---|
| 1/6 | |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] clk: Improve consumer field in debugfs clk_summary
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 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.
Thanks for your comments!
Geert Uytterhoeven (6):
clk: Remove unused clk.dev
clk: Add dev_clk_get_from_provider()
clk: renesas: Convert to dev_clk_get_from_provider() [RFT] drm/rockchip: dw_hdmi: Convert to dev_clk_get_from_provider() [RFT] ARM: OMAP2+: Convert to dev_clk_get_from_provider() [RFC] pmdomain: renesas: r8a78000: Convert to
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(-)
Signature · 12 lines
2.43.0
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