Skip to content

cpufreq: dt: Create platform device from generic code

Viresh Kumar linux-arm-kernel linux-pm linux-samsung-soc lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 9 repliesIn review
  2. v21 of 3 patches 3 repliesSuperseded
  3. v1 posting 2/22 of 3 patches 13 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 posting 1/23 patches14 repliesSuperseded

Changes in v3 from the cover letter

- 2/3 is very lightweight now and doesn't support cpufreq-dt platform-data and an extra depends_on from Kconfig is dropped as well.
- 3/3 is separated into two patches.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cpufreq: dt: Include types.h from cpufreq-dt.hinclude/linux/cpufreq-dt.h+2 -00 replies
2/4cpufreq: dt: Add generic platform-device creation supportdrivers/cpufreq/Kconfig drivers/cpufreq/Makefile drivers/cpufreq/cpufreq-dt-platdev.c+43 -01 reply
3/4ARM: exynos: exynos-cpufreq platform device isn't supported anymorearch/arm/mach-exynos/exynos.c+2 -61 reply
4/4cpufreq: exynos: Use generic platdev driverarch/arm/mach-exynos/exynos.c drivers/cpufreq/cpufreq-dt-platdev.c+9 -250 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiMatthew McClintock
1/4
2/4R-b T-b
3/4R-b
4/4R-b

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

Read the v3 thread

Cover letter [PATCH V3 0/4] cpufreq: dt: Create platform device from generic code

Multiple platforms are using the generic cpufreq-dt driver now, and all of them are required to create a platform device with name "cpufreq-dt", in order to get the cpufreq-dt probed.

Many of them do it from platform code, others have special drivers just to do that.

It would be more sensible to do this at a generic place, where all such platform can mark their entries.

The first patch fixes an issue that came up with an earlier version of patch 2/4, but its still worth fixing it. The second one creates a new driver to create platform-device based on current platform and the last two converts exynos platform to use this common infrastructure.

I will migrate rest of the platforms after this is accepted as the right way ahead.

V2->V3:
- 2/3 is very lightweight now and doesn't support cpufreq-dt platform-data and an extra depends_on from Kconfig is dropped as well.
- 3/3 is separated into two patches.

Viresh Kumar (4):
cpufreq: dt: Include types.h from cpufreq-dt.h
cpufreq: dt: Add generic platform-device creation support
ARM: exynos: exynos-cpufreq platform device isn't supported anymore
cpufreq: exynos: Use generic platdev driver

 arch/arm/mach-exynos/exynos.c        | 29 -------------------------
 drivers/cpufreq/Kconfig              | 10 +++++++++
 drivers/cpufreq/Makefile             |  1 +
 drivers/cpufreq/cpufreq-dt-platdev.c | 41 ++++++++++++++++++++++++++++++++++++
 include/linux/cpufreq-dt.h           |  2 ++
 5 files changed, 54 insertions(+), 29 deletions(-)
 create mode 100644 drivers/cpufreq/cpufreq-dt-platdev.c
Signature · 1 line
2.7.1.410.g6faf27b