Home Home > GIT Browse > SLE12-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>2019-08-06 10:27:06 +0200
committerNicolas Saenz Julienne <nsaenzjulienne@suse.de>2019-08-08 11:39:13 +0200
commita84461b1293e47d9854eee199cda852717927e86 (patch)
tree84455a024b45062a017159e6ab9b21135da5d857
parent6a8534d6bad4a0f8b599063ad68369207ab6cc02 (diff)
PM / OPP: OF: Use pr_debug() instead of pr_err() while adding
OPP table (jsc#SLE-7294).
-rw-r--r--patches.drivers/pm-opp-of-use-pr_debug-instead-of-pr_err-while-adding-opp-table.patch45
-rw-r--r--series.conf1
2 files changed, 46 insertions, 0 deletions
diff --git a/patches.drivers/pm-opp-of-use-pr_debug-instead-of-pr_err-while-adding-opp-table.patch b/patches.drivers/pm-opp-of-use-pr_debug-instead-of-pr_err-while-adding-opp-table.patch
new file mode 100644
index 0000000000..967fdc395e
--- /dev/null
+++ b/patches.drivers/pm-opp-of-use-pr_debug-instead-of-pr_err-while-adding-opp-table.patch
@@ -0,0 +1,45 @@
+From: Viresh Kumar <viresh.kumar@linaro.org>
+Date: Wed, 12 Jul 2017 09:21:49 +0530
+Subject: PM / OPP: OF: Use pr_debug() instead of pr_err() while adding OPP
+ table
+Git-commit: 5b60697cd89cf5a438b2984e11859228e5ec1c6b
+Patch-mainline: v4.14-rc1
+References: jsc#SLE-7294
+
+Some platforms add the OPPs dynamically from platform specific drivers
+instead of getting them statically from DT. The cpufreq-dt driver
+already ignores the return value of dev_pm_opp_of_cpumask_add_table() to
+not error out for such cases, but we still end up printing error message
+from that routine. That's not nice.
+
+Convert the print message to use pr_debug() instead.
+
+Reported-by: Mason <slash.tmp@free.fr>
+Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
+Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
+Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+Acked-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
+---
+ drivers/base/power/opp/of.c | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/base/power/opp/of.c b/drivers/base/power/opp/of.c
+index 57eec1ca0569..6f0497b377c7 100644
+--- a/drivers/base/power/opp/of.c
++++ b/drivers/base/power/opp/of.c
+@@ -539,8 +539,12 @@ int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask)
+
+ ret = dev_pm_opp_of_add_table(cpu_dev);
+ if (ret) {
+- pr_err("%s: couldn't find opp table for cpu:%d, %d\n",
+- __func__, cpu, ret);
++ /*
++ * OPP may get registered dynamically, don't print error
++ * message here.
++ */
++ pr_debug("%s: couldn't find opp table for cpu:%d, %d\n",
++ __func__, cpu, ret);
+
+ /* Free all other OPPs */
+ dev_pm_opp_of_cpumask_remove_table(cpumask);
+
diff --git a/series.conf b/series.conf
index ecd0b6e244..28e56da31d 100644
--- a/series.conf
+++ b/series.conf
@@ -5546,6 +5546,7 @@
patches.drivers/gpio-brcmstb-check-return-value-of-gpiochip_irqchip_
patches.drivers/HID-hid-sensor-hub-Force-logical-minimum-to-1-for-po.patch
patches.drivers/HID-wacom-Remove-comparison-of-u8-mode-with-zero-and.patch
+ patches.drivers/pm-opp-of-use-pr_debug-instead-of-pr_err-while-adding-opp-table.patch
patches.drivers/0001-cpufreq-governor-Drop-min_sampling_rate.patch
patches.drivers/0003-cpufreq-Use-transition_delay_us-for-legacy-governors.patch
patches.drivers/0001-cpufreq-remove-setting-of-policy-cpu-in-policy-cpus-.patch