Message ID | cover.1526988624.git.viresh.kumar@linaro.org |
---|---|
Headers | show |
Series | PM / OPP: Fix helpers for shared OPP table cases | expand |
On Tue, May 22, 2018 at 05:04:05PM +0530, Viresh Kumar wrote: > Hi, > > Ilia Lin found a usecase where his Qualcomm cpufreq driver needs to call > the helpers for all the CPUs, as the driver is unaware of their sharing > information. I was hoping to teach the driver about the shared CPUs using existing OPP helpers(e.g. dev_pm_opp_of_get_sharing_cpus) -- Regards, Sudeep
On 22-05-18, 14:07, Sudeep Holla wrote: > On Tue, May 22, 2018 at 05:04:05PM +0530, Viresh Kumar wrote: > > Hi, > > > > Ilia Lin found a usecase where his Qualcomm cpufreq driver needs to call > > the helpers for all the CPUs, as the driver is unaware of their sharing > > information. > > I was hoping to teach the driver about the shared CPUs using existing > OPP helpers(e.g. dev_pm_opp_of_get_sharing_cpus) Right and that API is already there for everyone to use. The thing was that in case of Ilia his driver doesn't really need to know about that, but rather just set the supported-hw property for all the CPUs. Why should we ask drivers to keep more core to get the sharing policy first and then set the properties only once for a policy. That's not right and so I came up with this series. -- viresh