Skip to content

Introduce of_init_clk_data() for DT clock parsing

Stephen Boyd linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4clk: Add of_init_clk_data() to parse common clock bindingsdrivers/clk/clk.c include/linux/clk-provider.h+59 -10 replies
2/4clk: highbank: Use of_init_clk_data()drivers/clk/clk-highbank.c+8 -130 replies
3/4clk: vt8500: Use of_init_clk_data()drivers/clk/clk-vt8500.c+15 -241 reply
4/4clk: zynq: Use of_init_clk_data()drivers/clk/clk-zynq.c+9 -1913 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchTony Prisk
1/4
2/4
3/4A-b
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Introduce of_init_clk_data() for DT clock parsing

I see the same pattern repeated a few times to parse the common clock bindings for a particular clock. Instead of wrting this code another time, let's consolidate the logic in one place and standardize how clocks will be named from their bindings.

After this series there are no more users of of_clk_get_parent_name() so we may want to delete it.

Stephen Boyd (4):
clk: Add of_init_clk_data() to parse common clock bindings
clk: highbank: Use of_init_clk_data()
clk: vt8500: Use of_init_clk_data()
clk: zynq: Use of_init_clk_data()

 drivers/clk/clk-highbank.c   | 21 ++++++----------
 drivers/clk/clk-vt8500.c     | 39 ++++++++++++-----------------
 drivers/clk/clk-zynq.c       | 28 +++++++--------------
 drivers/clk/clk.c            | 58 +++++++++++++++++++++++++++++++++++++++++++-
 include/linux/clk-provider.h |  2 ++
 5 files changed, 91 insertions(+), 57 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation