opp: Print OPP level in debug message of _opp_add_static_v2()
authorDmitry Osipenko <digetx@gmail.com>
Mon, 18 Jan 2021 00:55:24 +0000 (03:55 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:57:36 +0000 (10:27 +0530)
Print OPP level in debug message of _opp_add_static_v2(). This helps to
chase GENPD bugs.

Tested-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Tested-by: Matt Merhar <mattmerhar@protonmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c

index a905497c75f8530d342ed53b90fc4b5521396bcf..20ccdaab9384941df3506d618c8ad9917d5cbab3 100644 (file)
@@ -822,10 +822,11 @@ static struct dev_pm_opp *_opp_add_static_v2(struct opp_table *opp_table,
        if (new_opp->clock_latency_ns > opp_table->clock_latency_ns_max)
                opp_table->clock_latency_ns_max = new_opp->clock_latency_ns;
 
-       pr_debug("%s: turbo:%d rate:%lu uv:%lu uvmin:%lu uvmax:%lu latency:%lu\n",
+       pr_debug("%s: turbo:%d rate:%lu uv:%lu uvmin:%lu uvmax:%lu latency:%lu level:%u\n",
                 __func__, new_opp->turbo, new_opp->rate,
                 new_opp->supplies[0].u_volt, new_opp->supplies[0].u_volt_min,
-                new_opp->supplies[0].u_volt_max, new_opp->clock_latency_ns);
+                new_opp->supplies[0].u_volt_max, new_opp->clock_latency_ns,
+                new_opp->level);
 
        /*
         * Notify the changes in the availability of the operable