Re: [PATCH] opp: Drop unnecessary check frmo dev_pm_opp_attach_genpd()

2020-08-30 Thread Viresh Kumar
On 27-08-20, 14:14, Stephan Gerhold wrote: > Only partially related to this patch, but actually I noticed that > dev_pm_opp_attach_genpd() does not work correctly if it is called > multiple times. > > For example, qcom-cpufreq-nvmem calls this for every CPU because it is > not aware that the OPP t

Re: [PATCH] opp: Drop unnecessary check frmo dev_pm_opp_attach_genpd()

2020-08-27 Thread Stephan Gerhold
On Thu, Aug 27, 2020 at 03:35:15PM +0530, Viresh Kumar wrote: > Since commit c0ab9e0812da ("opp: Allocate genpd_virt_devs from > dev_pm_opp_attach_genpd()"), the allocation of the virtual devices is > moved to dev_pm_opp_attach_genpd() and this check isn't required anymore > as it will always fail.

[PATCH] opp: Drop unnecessary check frmo dev_pm_opp_attach_genpd()

2020-08-27 Thread Viresh Kumar
Since commit c0ab9e0812da ("opp: Allocate genpd_virt_devs from dev_pm_opp_attach_genpd()"), the allocation of the virtual devices is moved to dev_pm_opp_attach_genpd() and this check isn't required anymore as it will always fail. Drop it. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 6 --