Skip to content

OPP: Fix more bugs and improve error handling

Viresh Kumar linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 of 4 patches 0 repliesNew

3 of 4 patches are in this archive. The cover letter announces 4.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4OPP: Improve error handling in dev_pm_opp_of_cpumask_add_table()drivers/opp/of.c+12 -60 replies
2/4OPP: Return error on error from dev_pm_opp_get_opp_count()drivers/opp/core.c+1 -10 replies
3/4cpufreq: dt: Try freeing static OPPs only if we have added themdrivers/cpufreq/cpufreq-dt.c+19 -150 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchNiklas Cassel
SeriesT-b
1/4
2/4
3/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] OPP: Fix more bugs and improve error handling

Hello,

Few more bugs have surfaced recently, few of which have been there forever but came to light only after the recent changes in OPP core.

Dave already sent fix for one of them sometime back and as he isn't around for a week, I picked up the patch, modified it and posting V2 of it here.

Niklas already helped testing two of these on Qcom hardware where he originally faced the issues.

--
Viresh

Dave Gerlach (1):
PM / OPP: _of_add_opp_table_v2(): increment count only if OPP is added

Viresh Kumar (3):
OPP: Improve error handling in dev_pm_opp_of_cpumask_add_table()
OPP: Return error on error from dev_pm_opp_get_opp_count()
cpufreq: dt: Try freeing static OPPs only if we have added them

 drivers/cpufreq/cpufreq-dt.c | 34 +++++++++++++-----------
 drivers/opp/core.c           |  2 +-
 drivers/opp/of.c             | 51 ++++++++++++++++++++++--------------
 3 files changed, 52 insertions(+), 35 deletions(-)
Signature · 1 line
2.18.0.rc1.242.g61856ae69a2c