On 20/04/2016 11:55, Viresh Kumar wrote:
On 30-03-16, 13:45, Viresh Kumar wrote:
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.
@Matthew and @Mason,
Now that this is present in linux-next, you guys can send patches for your platforms cpufreq support.
Viresh,
IIUC, all I need to do is add my platform's string to drivers/cpufreq/cpufreq-dt-platdev.c ?
Should I add it at the beginning or at the end? (I suppose at the end.)
I should add "sigma,tango4", since that's what is used in arch/arm/mach-tango/setup.c right?
Regards.