Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-23 Thread Viresh Kumar
On 23-11-18, 14:41, Viresh Kumar wrote: > On 22-11-18, 11:38, Viresh Kumar wrote: > > So there are few complexities in the case where an OPP table points to > > itself in > > the required-opp field. I looked at solving it up in the opp core but that > > gets > > more and more messy. > > > > Now

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-23 Thread Viresh Kumar
On 22-11-18, 11:38, Viresh Kumar wrote: > So there are few complexities in the case where an OPP table points to itself > in > the required-opp field. I looked at solving it up in the opp core but that > gets > more and more messy. > > Now there is actually a assumption within the OPP core. Your

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-21 Thread Viresh Kumar
On 21-11-18, 11:48, Rajendra Nayak wrote: > > > On 11/21/2018 11:36 AM, Viresh Kumar wrote: > > On 21-11-18, 10:47, Viresh Kumar wrote: > > > On 21-11-18, 10:34, Rajendra Nayak wrote: > > > > > > > > > > > > On 11/5/2018 12:06 PM, Viresh Kumar wrote: > > > > > Introduce a new helper dev_pm_opp_

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-20 Thread Rajendra Nayak
On 11/21/2018 11:36 AM, Viresh Kumar wrote: On 21-11-18, 10:47, Viresh Kumar wrote: On 21-11-18, 10:34, Rajendra Nayak wrote: On 11/5/2018 12:06 PM, Viresh Kumar wrote: Introduce a new helper dev_pm_opp_xlate_performance_state() which will be used to translate from pstate of a device to a

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-20 Thread Viresh Kumar
On 21-11-18, 10:47, Viresh Kumar wrote: > On 21-11-18, 10:34, Rajendra Nayak wrote: > > > > > > On 11/5/2018 12:06 PM, Viresh Kumar wrote: > > > Introduce a new helper dev_pm_opp_xlate_performance_state() which will > > > be used to translate from pstate of a device to another one. > > > > > > I

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-20 Thread Viresh Kumar
On 21-11-18, 10:34, Rajendra Nayak wrote: > > > On 11/5/2018 12:06 PM, Viresh Kumar wrote: > > Introduce a new helper dev_pm_opp_xlate_performance_state() which will > > be used to translate from pstate of a device to another one. > > > > Initially this will be used by genpd to find pstate of a

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-20 Thread Rajendra Nayak
On 11/5/2018 12:06 PM, Viresh Kumar wrote: Introduce a new helper dev_pm_opp_xlate_performance_state() which will be used to translate from pstate of a device to another one. Initially this will be used by genpd to find pstate of a master domain using its sub-domain's pstate. Signed-off-by:

[PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-04 Thread Viresh Kumar
Introduce a new helper dev_pm_opp_xlate_performance_state() which will be used to translate from pstate of a device to another one. Initially this will be used by genpd to find pstate of a master domain using its sub-domain's pstate. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 49 +