linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/4] cpufreq: dt: Create platform device from generic code
@ 2016-03-30  8:15 Viresh Kumar
  2016-03-30  8:15 ` [PATCH V3 1/4] cpufreq: dt: Include types.h from cpufreq-dt.h Viresh Kumar
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Viresh Kumar @ 2016-03-30  8:15 UTC (permalink / raw)
  To: Rafael Wysocki, arnd.bergmann
  Cc: linaro-kernel, linux-pm, kgene.kim, xf, heiko, mmcclint,
	k.kozlowski, Viresh Kumar

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

-- 
2.7.1.410.g6faf27b


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-04-28  2:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30  8:15 [PATCH V3 0/4] cpufreq: dt: Create platform device from generic code Viresh Kumar
2016-03-30  8:15 ` [PATCH V3 1/4] cpufreq: dt: Include types.h from cpufreq-dt.h Viresh Kumar
2016-03-30  8:15 ` [PATCH V3 2/4] cpufreq: dt: Add generic platform-device creation support Viresh Kumar
2016-04-13 19:46   ` Matthew McClintock
2016-03-30  8:15 ` [PATCH V3 3/4] ARM: exynos: exynos-cpufreq platform device isn't supported anymore Viresh Kumar
2016-03-30  8:30   ` Krzysztof Kozlowski
2016-03-30  8:15 ` [PATCH V3 4/4] cpufreq: exynos: Use generic platdev driver Viresh Kumar
2016-04-07  8:31 ` [PATCH V3 0/4] cpufreq: dt: Create platform device from generic code Viresh Kumar
2016-04-20  9:55 ` Viresh Kumar
2016-04-20 21:27   ` Mason
2016-04-20 22:31     ` Rafael J. Wysocki
2016-04-27 16:47   ` Mason
2016-04-27 16:57     ` Matthew McClintock
2016-04-28  2:27       ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).