[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190207114726.741da653@canb.auug.org.au>
Date: Thu, 7 Feb 2019 11:47:26 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: Linux Next Mailing List <linux-next@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Matthias Kaehlcke <mka@...omium.org>,
Taniya Das <tdas@...eaurora.org>
Subject: linux-next: manual merge of the opp tree with the cpufreq-arm tree
Hi Viresh,
Today's linux-next merge of the opp tree got a conflict in:
drivers/cpufreq/qcom-cpufreq-hw.c
between commit:
5471b2c9bd08 ("cpufreq: qcom: Read voltage LUT and populate OPP")
from the cpufreq-arm tree and commit:
597457d7e054 ("cpufreq: qcom-hw: Register an Energy Model")
from the opp tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc drivers/cpufreq/qcom-cpufreq-hw.c
index 15f31e8c09c2,a16b9dca7ea3..000000000000
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@@ -224,13 -205,8 +224,15 @@@ static int qcom_cpufreq_hw_cpu_init(str
goto error;
}
+ ret = dev_pm_opp_get_opp_count(cpu_dev);
+ if (ret <= 0) {
+ dev_err(cpu_dev, "Failed to add OPPs\n");
+ ret = -ENODEV;
+ goto error;
+ }
+
+ dev_pm_opp_of_register_em(policy->cpus);
+
policy->fast_switch_possible = true;
return 0;
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists