Skip to content

clk: meson: ee: use the new parent description method

Alexandre Mergnat linux-amlogic linux-arm-kernel linux-clk lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/28 patches 2 repliesIn review
  2. v2 posting 1/24 patches 1 replyApplied
  3. v18 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Improve comments in gxbb, g12a and meson8b files

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8clk: meson: g12a: move clock declaration to dependency orderdrivers/clk/meson/g12a.c+135 -1350 replies
2/8clk: meson: g12a: migrate to the new parent description methoddrivers/clk/meson/g12a.c+571 -2720 replies
3/8clk: meson: gxbb: migrate to the new parent description methoddrivers/clk/meson/gxbb.c+451 -2030 replies
4/8clk: meson: axg: migrate to the new parent description methoddrivers/clk/meson/axg.c+144 -600 replies
5/8clk: meson: meson8b: migrate to the new parent description methoddrivers/clk/meson/meson8b.c+496 -2111 reply
6/8clk: meson: clk-regmap: migrate to new parent description methoddrivers/clk/meson/axg.c drivers/clk/meson/clk-regmap.h drivers/clk/meson/g12a.c +2 more+21 -60 replies
7/8clk: meson: remove ee input bypass clocksdrivers/clk/meson/Kconfig drivers/clk/meson/meson-eeclk.c drivers/clk/meson/meson-eeclk.h+0 -130 replies
8/8clk: meson: remove clk input helperdrivers/clk/meson/Kconfig drivers/clk/meson/Makefile drivers/clk/meson/clk-input.c +1 more+0 -720 replies

Reviews trailers per patch

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

PatchMartin Blumenstingl
1/8
2/8
3/8
4/8
5/8R-b T-b
6/8
7/8
8/8

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/8] clk: meson: ee: use the new parent description method

Meson SoCs clock controllers use the string comparison method to describe parent relation between the clocks, which is not optimized.

Its also use bypass clock made from device-tree clock to provide an input clock which can be access through global name, but it still not optimal.

A recent patch [0] allows parents to be directly specified with device-tree clock name or without string names from localy declared clocks.

This patchset replaces clock string names by clock pointers (as possible), removes bypass clocks and uses directly device-tree clock names in parent assignment.

Tested on GXL, GXBB, Meson8b, AXG SoCs by comparing the clock summary (orphan too) before and after migration.

[0] commit fc0c209c147f ("clk: Allow parents to be specified without string names")

Change since v1:
- Improve comments in gxbb, g12a and meson8b files

Alexandre Mergnat (8):
clk: meson: g12a: move clock declaration to dependency order
clk: meson: g12a: migrate to the new parent description method
clk: meson: gxbb: migrate to the new parent description method
clk: meson: axg: migrate to the new parent description method
clk: meson: meson8b: migrate to the new parent description method
clk: meson: clk-regmap: migrate to new parent description method
clk: meson: remove ee input bypass clocks
clk: meson: remove clk input helper

 drivers/clk/meson/Kconfig       |    4 -
 drivers/clk/meson/Makefile      |    1 -
 drivers/clk/meson/axg.c         |  207 ++++--
 drivers/clk/meson/clk-input.c   |   49 --
 drivers/clk/meson/clk-input.h   |   19 -
 drivers/clk/meson/clk-regmap.h  |   12 +-
 drivers/clk/meson/g12a.c        | 1093 ++++++++++++++++++++-----------
 drivers/clk/meson/gxbb.c        |  657 +++++++++++++------
 drivers/clk/meson/meson-eeclk.c |   10 -
 drivers/clk/meson/meson-eeclk.h |    2 -
 drivers/clk/meson/meson8b.c     |  710 ++++++++++++++------
 11 files changed, 1805 insertions(+), 959 deletions(-)
 delete mode 100644 drivers/clk/meson/clk-input.c
 delete mode 100644 drivers/clk/meson/clk-input.h
Signature · 1 line
2.17.1