Skip to content

Allow COMMON_CLK to be selectable

Stephen Boyd linux-arm-kernel linux-clk linux-m68k linux-mips linux-sh 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 Latest10 patches 15 repliesApplied
  2. v19 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* Fixed MIPS ralink build problem pointed out by Arnd
* Fixed meson mx sdio build due to bad Kconfig exposed by this change
* Picked up acks

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10ARM: Remove redundant COMMON_CLK selectsarch/arm/mach-actions/Kconfig arch/arm/mach-clps711x/Kconfig arch/arm/mach-mmp/Kconfig+0 -31 reply
2/10ARM: Remove redundant CLKDEV_LOOKUP selectsarch/arm/Kconfig arch/arm/mach-vt8500/Kconfig+0 -41 reply
3/10arm64: tegra: Remove redundant CLKDEV_LOOKUP selectsarch/arm64/Kconfig.platforms+0 -11 reply
4/10h8300: Remove redundant CLKDEV_LOOKUP selectsarch/h8300/Kconfig+0 -11 reply
5/10MIPS: Remove redundant CLKDEV_LOOKUP selectsarch/mips/Kconfig+0 -21 reply
6/10mmc: meson-mx-sdio: Depend on OF_ADDRESS and not just OFdrivers/mmc/host/Kconfig+1 -14 replies
7/10clk: Allow the common clk framework to be selectablearch/arm/Kconfig arch/c6x/Kconfig arch/m68k/Kconfig.cpu +6 more+31 -92 replies
8/10ARM: mmp: Remove legacy clk codearch/arm/mach-mmp/Makefile arch/arm/mach-mmp/clock-mmp2.c arch/arm/mach-mmp/clock-pxa168.c +3 more+0 -4541 reply
9/10MIPS: Loongson64: Drop asm/clock.h includearch/mips/loongson64/smp.c+0 -11 reply
10/10clk: Move HAVE_CLK config out of architecture layerarch/Kconfig drivers/clk/Kconfig+6 -61 reply

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndreas FärberManivannan SadhasivamJiaxun YangThierry RedingArnd BergmannMark BrownPhilippe Mathieu-DaudéUlf Hansson
SeriesR-b R-b
1/10R-b A-b
2/10
3/10A-b
4/10
5/10
6/10A-b
7/10Reviwed-by
8/10
9/10A-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/10] Allow COMMON_CLK to be selectable

This patch series cleans up a handful of selects that were redundant and deletes presumably dead code with the goal of making it possible to add kunit tests for the CCF in the future. To do that, we introduce a "legacy" clk Kconfig option to mark code that hasn't migrated to the common clk framework and then make the COMMON_CLK config option visible in the menuconfig as long as that legacy option isn't enabled. I've also included a couple patches at the end that may be more controversial but helped me consolidate all this logic/code.

I haven't done more than compile test a few configs for arm, arm64, h8300, and mips. More testing is welcome.

The plan is that I'll just merge the whole pile through the clk tree. If the first five patches or the last three patches are better going through another tree like arm-soc or architecture trees that's fine too, but there are potential conflicts between trees so maybe it's better to just leave it all in one tree.

Changes from v1:
* Fixed MIPS ralink build problem pointed out by Arnd
* Fixed meson mx sdio build due to bad Kconfig exposed by this change
* Picked up acks

Stephen Boyd (10):
ARM: Remove redundant COMMON_CLK selects
ARM: Remove redundant CLKDEV_LOOKUP selects
arm64: tegra: Remove redundant CLKDEV_LOOKUP selects
h8300: Remove redundant CLKDEV_LOOKUP selects
MIPS: Remove redundant CLKDEV_LOOKUP selects
mmc: meson-mx-sdio: Depend on OF_ADDRESS and not just OF
clk: Allow the common clk framework to be selectable
ARM: mmp: Remove legacy clk code
MIPS: Loongson64: Drop asm/clock.h include
clk: Move HAVE_CLK config out of architecture layer

Cc Alexander Shiyan <[email protected]>
Cc "Andreas Färber" <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Aurelien Jacquiot <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Guan Xuetao <[email protected]>
Cc Jiaxun Yang <[email protected]>
Cc Lubomir Rintel <[email protected]>
Cc Manivannan Sadhasivam <[email protected]>
Cc Mark Brown <[email protected]>
Cc Mark Salter <[email protected]>
Cc Neil Armstrong <[email protected]>
Cc Paul Burton <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Rich Felker <[email protected]>
Cc Russell King <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Thomas Bogendoerfer <[email protected]>
Cc Tony Prisk <[email protected]>
Cc Ulf Hansson <[email protected]>
Cc Will Deacon <[email protected]>
Cc Yoshinori Sato <[email protected]>
 arch/Kconfig                     |   6 --
 arch/arm/Kconfig                 |   5 +-
 arch/arm/mach-actions/Kconfig    |   1 -
 arch/arm/mach-clps711x/Kconfig   |   1 -
 arch/arm/mach-mmp/Kconfig        |   1 -
 arch/arm/mach-mmp/Makefile       |   6 --
 arch/arm/mach-mmp/clock-mmp2.c   | 114 -------------------------------
 arch/arm/mach-mmp/clock-pxa168.c |  94 -------------------------
 arch/arm/mach-mmp/clock-pxa910.c |  70 -------------------
 arch/arm/mach-mmp/clock.c        | 105 ----------------------------
 arch/arm/mach-mmp/clock.h        |  65 ------------------
 arch/arm/mach-vt8500/Kconfig     |   1 -
 arch/arm64/Kconfig.platforms     |   1 -
 arch/c6x/Kconfig                 |   1 +
 arch/h8300/Kconfig               |   1 -
 arch/m68k/Kconfig.cpu            |   2 +-
 arch/mips/Kconfig                |   7 +-
 arch/mips/loongson2ef/Kconfig    |   2 +-
 arch/mips/loongson64/smp.c       |   1 -
 arch/mips/ralink/Kconfig         |   4 ++
 arch/sh/boards/Kconfig           |   5 ++
 arch/unicore32/Kconfig           |   2 +-
 drivers/clk/Kconfig              |  23 +++++--
 drivers/mmc/host/Kconfig         |   2 +-
 24 files changed, 38 insertions(+), 482 deletions(-)
 delete mode 100644 arch/arm/mach-mmp/clock-mmp2.c
 delete mode 100644 arch/arm/mach-mmp/clock-pxa168.c
 delete mode 100644 arch/arm/mach-mmp/clock-pxa910.c
 delete mode 100644 arch/arm/mach-mmp/clock.c
 delete mode 100644 arch/arm/mach-mmp/clock.h

base-commit: 7111951b8d4973bda27ff663f2cf18b663d15b48

Signature · 1 line
Sent by a computer, using git, on the internet