[PATCH V3 4/7] cpufreq: add generic cpufreq driver
Richard Zhao
richard.zhao at linaro.org
Thu Dec 22 01:19:40 EST 2011
On Wed, Dec 21, 2011 at 01:49:07PM +0100, Kay Sievers wrote:
> On Wed, Dec 21, 2011 at 13:12, Mark Brown
> <broonie at opensource.wolfsonmicro.com> wrote:
> > On Wed, Dec 21, 2011 at 12:44:57PM +0100, Kay Sievers wrote:
> >
> >> We will convert all classes to buses over time time, and have a single
> >> type of device and a single type of subsystem.
> >
> > Are there any conversions that have been done already that I can look at
> > for reference?
>
> The first step is the conversion from 'sys_device' to 'device', which is here:
> http://git.kernel.org/?p=linux/kernel/git/kay/patches.git;a=tree
>
> That should hit the tree soon, if all works according to plan. All
> sys_devices and sysdev classes will be gone for forever.
Even cpu node is device, I still need to find a way to get it. I think it's
better have another patch to fix the regulator dt binding in cpu node. I'll
not include it in this patch series.
Richard
>
> The 'class' to 'bus' work is simpler, because the logic in both of
> them is very similar and both use the same 'struct device' already.
>
> We'll need to add some convenience APIs to bus, and add code to make
> sure the converted stuff has compat symlinks in /sys/class when
> needed. Then we can convert-over one 'struct class' to 'struct
> bus_type' after the other until 'struct class' can be deleted.
>
> This work has not yet started, because we are busy with the sys_device
> stuff at the moment.
>
> No new stuff should use 'struct class' or 'struct sys_device', they
> should all start right away with 'struct bus_type'.
>
> Kay
More information about the devicetree-discuss
mailing list