Skip to content

Commit a87a109

Browse files
committed
Merge branch 'cpufreq/arm/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm
Pull ARM cpufreq fixes for v5.14 from Viresh Kumar: "This contains: - Addition of SoCs to blocklist for cpufreq-dt driver (Bjorn Andersson and Thara Gopinath). - Fix error path for scmi driver (Lukasz Luba). - Temporarily disable highest frequency for armada, its unsafe and breaks stuff." * 'cpufreq/arm/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm: cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant cpufreq: blocklist Qualcomm sm8150 in cpufreq-dt-platdev cpufreq: arm_scmi: Fix error path when allocation failed cpufreq: blacklist Qualcomm sc8180x in cpufreq-dt-platdev
2 parents 7c60610 + 484f2b7 commit a87a109

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

drivers/cpufreq/armada-37xx-cpufreq.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ struct armada_37xx_dvfs {
104104
};
105105

106106
static struct armada_37xx_dvfs armada_37xx_dvfs[] = {
107-
{.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} },
107+
/*
108+
* The cpufreq scaling for 1.2 GHz variant of the SOC is currently
109+
* unstable because we do not know how to configure it properly.
110+
*/
111+
/* {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, */
108112
{.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} },
109113
{.cpu_freq_max = 800*1000*1000, .divider = {1, 2, 3, 4} },
110114
{.cpu_freq_max = 600*1000*1000, .divider = {2, 4, 5, 6} },

drivers/cpufreq/cpufreq-dt-platdev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ static const struct of_device_id blocklist[] __initconst = {
139139
{ .compatible = "qcom,qcs404", },
140140
{ .compatible = "qcom,sc7180", },
141141
{ .compatible = "qcom,sc7280", },
142+
{ .compatible = "qcom,sc8180x", },
142143
{ .compatible = "qcom,sdm845", },
144+
{ .compatible = "qcom,sm8150", },
143145

144146
{ .compatible = "st,stih407", },
145147
{ .compatible = "st,stih410", },

drivers/cpufreq/scmi-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy)
134134
}
135135

136136
if (!zalloc_cpumask_var(&opp_shared_cpus, GFP_KERNEL))
137-
ret = -ENOMEM;
137+
return -ENOMEM;
138138

139139
/* Obtain CPUs that share SCMI performance controls */
140140
ret = scmi_get_sharing_cpus(cpu_dev, policy->cpus);

0 commit comments

Comments
 (0)