Re: [PATCH v6 1/1] mfd: arizona: Export functions to control subsystem DVFS

Richard Fitzgerald
2015-05-26T16:11:04Z

On Tue, May 26, 2015 at 04:29:42PM +0100, Mark Brown wrote:
> On Tue, May 26, 2015 at 02:52:05PM +0100, Lee Jones wrote:
>
> > Shouldn't this DVFS dump live in drivers/cpufreq?
>
> cpufreq is specifically for CPUs (with the governors and everything) and
> has its own problems here. There is devfreq which was crated for this
> sort of thing (though more on a SoC level) though, not sure if it's a
> good fit or not.

devfreq does look as though it's at the wrong sort of level. Also looks
like it could introduce more complexity than is justified.

An simpler alternative if we don't want this code in mfd is that
potentially this DVFS handling could be moved into the SoC codec driver.