Skip to content

cpufreq: dt: Don't create platform-device from platform code

Viresh Kumar linux-arm-kernel linux-omap linux-pm linux-renesas-soc linux-rockchip lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 2 repliesIn review
  2. v18 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Acks from Arnd for all the patches and from few other maintainers
- Finley sent his patch for rockchip 2 minutes before I sent mine :), and so I picked his patch instead of mine.
- First patch is new based on suggestions from Geert.
- Arnd suggested to get rid of a init routine in imx patch, that's done as well.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9cpufreq: dt: Mark platdev machines array as __initconstdrivers/cpufreq/cpufreq-dt-platdev.c+1 -10 replies
2/9cpufreq: berlin: Use generic platdev driverarch/arm/mach-berlin/berlin.c drivers/cpufreq/cpufreq-dt-platdev.c+2 -60 replies
3/9cpufreq: imx: Use generic platdev driverarch/arm/mach-imx/imx27-dt.c arch/arm/mach-imx/mach-imx51.c arch/arm/mach-imx/mach-imx53.c +2 more+5 -210 replies
4/9cpufreq: omap: Use generic platdev driverarch/arm/mach-omap2/pm.c drivers/cpufreq/cpufreq-dt-platdev.c+7 -50 replies
5/9cpufreq: rockchip: Use generic platdev driverarch/arm/mach-rockchip/rockchip.c drivers/cpufreq/cpufreq-dt-platdev.c+11 -11 reply
6/9cpufreq: shmobile: Use generic platdev driverarch/arm/mach-shmobile/Makefile arch/arm/mach-shmobile/common.h arch/arm/mach-shmobile/cpufreq.c +1 more+12 -270 replies
7/9cpufreq: sunxi: Use generic platdev driverarch/arm/mach-sunxi/sunxi.c drivers/cpufreq/cpufreq-dt-platdev.c+12 -90 replies
8/9cpufreq: zynq: Use generic platdev driverarch/arm/mach-zynq/common.c drivers/cpufreq/cpufreq-dt-platdev.c+2 -20 replies
9/9cpufreq: hisilicon: Use generic platdev driverdrivers/cpufreq/Kconfig.arm drivers/cpufreq/Makefile drivers/cpufreq/cpufreq-dt-platdev.c +1 more+2 -520 replies

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchAntoine TenartArnd BergmannLucas StachViresh KumarHeiko Stuebner
1/9
2/9A-b A-b
3/9A-b A-b
4/9A-b
5/9A-b A-b R-b
6/9A-b
7/9A-b
8/9A-b
9/9A-b

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

Read the v2 thread

Cover letter [PATCH V2 0/9] cpufreq: dt: Don't create platform-device from platform code

Hi Rafael,

This migrates rest of the platforms to use cpufreq-dt-platdev.c. There are few exceptions though:
- mvebu: it uses platform data and its problem will be solved in a separate series.
- highbank, s5pv210, sti, tegra124: these platforms already have cpufreq drivers in drivers/cpufreq/, which does some other stuff and finally create the device. There are sequencing issues, and so they will be left as it is.

V1->V2:
- Acks from Arnd for all the patches and from few other maintainers
- Finley sent his patch for rockchip 2 minutes before I sent mine :), and so I picked his patch instead of mine.
- First patch is new based on suggestions from Geert.
- Arnd suggested to get rid of a init routine in imx patch, that's done as well.

I think we can push this series now that its been Acked by Arnd..

Finley Xiao (1):
cpufreq: rockchip: Use generic platdev driver

Viresh Kumar (8):
cpufreq: dt: Mark platdev machines array as __initconst
cpufreq: berlin: Use generic platdev driver
cpufreq: imx: Use generic platdev driver
cpufreq: omap: Use generic platdev driver
cpufreq: shmobile: Use generic platdev driver
cpufreq: sunxi: Use generic platdev driver
cpufreq: zynq: Use generic platdev driver
cpufreq: hisilicon: Use generic platdev driver

 arch/arm/mach-berlin/berlin.c        |  6 ----
 arch/arm/mach-imx/imx27-dt.c         | 10 -------
 arch/arm/mach-imx/mach-imx51.c       |  3 --
 arch/arm/mach-imx/mach-imx53.c       |  2 --
 arch/arm/mach-imx/mach-imx7d.c       |  6 ----
 arch/arm/mach-omap2/pm.c             |  7 ++---
 arch/arm/mach-rockchip/rockchip.c    |  1 -
 arch/arm/mach-shmobile/Makefile      |  1 -
 arch/arm/mach-shmobile/common.h      |  7 -----
 arch/arm/mach-shmobile/cpufreq.c     | 19 -------------
 arch/arm/mach-sunxi/sunxi.c          |  9 ------
 arch/arm/mach-zynq/common.c          |  2 --
 drivers/cpufreq/Kconfig.arm          |  9 ------
 drivers/cpufreq/Makefile             |  1 -
 drivers/cpufreq/cpufreq-dt-platdev.c | 53 +++++++++++++++++++++++++++++++++++-
 drivers/cpufreq/hisi-acpu-cpufreq.c  | 42 ----------------------------
 16 files changed, 54 insertions(+), 124 deletions(-)
 delete mode 100644 arch/arm/mach-shmobile/cpufreq.c
 delete mode 100644 drivers/cpufreq/hisi-acpu-cpufreq.c
Signature · 1 line
2.7.1.410.g6faf27b