Re: [PATCH] cpufreq: dt: Support platforms with separate clock lines for each CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Viresh Kumar,

On Wed, 10 Sep 2014 09:59:07 +0530, Viresh Kumar wrote:

> Yesterday again I was pinged by Thomas about the status of this work and the
> thread isn't going anywhere. He is blocked with just this to get his platform
> running on mainline.
> 
> Will it be possible to get this through as a temporary solution?

A compile time conditional does not work, as it isn't compatible with
multiplatform: what if in the same kernel you want to support two
platforms that use cpufreq-dt, one having a single clock for all CPUs,
and one having one clock per CPU.

I'm still confused as to what is the problem with the DT binding
surrounding this driver. Isn't it simply a matter of adding a clocks =
<...> property to all CPUs, and that's it?

Viresh told me there was an issue related to comparing the clocks in
the driver to find out which CPUs share which clocks. But that is not a
DT binding issue, it's an implementation detail. Since the driver is
purely for DT platforms (as its name suggest), comparing phandles could
work as a temporary solution. And since it's just an implementation
detail that doesn't affect the DT binding, we could change the
implementation later to use a proper clock API like clk_is_same(clk1,
clk2) that would tell us if the clocks are the same.

But I have probably missed some of the complexity of this.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux