Skip to content

clk: add api to get clk consumer from clk_hw

Jerome Brunet linux-amlogic linux-clk lkml 2 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied
  2. v11 patch 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3clk: avoid devm_clk_release name clashdrivers/clk/clk.c+6 -61 reply
2/3clk: add api to get clk consumer from clk_hwdrivers/clk/clk.c include/linux/clk-provider.h+66 -01 reply
3/3clk: meson: g12: drop use of __clk_lookup()drivers/clk/meson/g12a.c+32 -361 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchKevin Hilman
SeriesT-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] clk: add api to get clk consumer from clk_hw

This patchset a call in CCF to get "struct clk*" from "struct clk_hw*"

Changes since v1: [0]
* Add a con_id string to help keep track of the consumer
* Add devm variant:
- Following our discussion on V1, I choose to have the dev as argument as most devm function do. However, as Stephen pointed out we don't expect this to differ from the one linked to clk_hw. In this case a warning is thrown.
* Add a first usage of this in the amlogic clock driver.

[0]: https://lore.kernel.org/r/[email protected]

Jerome Brunet (3):
clk: avoid devm_clk_release name clash
clk: add api to get clk consumer from clk_hw
clk: meson: g12: drop use of __clk_lookup()

 drivers/clk/clk.c            | 73 +++++++++++++++++++++++++++++++++---
 drivers/clk/meson/g12a.c     | 68 ++++++++++++++++-----------------
 include/linux/clk-provider.h |  5 +++
 3 files changed, 104 insertions(+), 42 deletions(-)
Signature · 1 line
2.25.4