Skip to content
Commit 6c9bb869 authored by Mike Tipton's avatar Mike Tipton Committed by Viresh Kumar
Browse files

cpufreq: scmi: Skip SCMI devices that aren't used by the CPUs



Currently, all SCMI devices with performance domains attempt to register
a cpufreq driver, even if their performance domains aren't used to
control the CPUs. The cpufreq framework only supports registering a
single driver, so only the first device will succeed. And if that device
isn't used for the CPUs, then cpufreq will scale the wrong domains.

To avoid this, return early from scmi_cpufreq_probe() if the probing
SCMI device isn't referenced by the CPU device phandles.

This keeps the existing assumption that all CPUs are controlled by a
single SCMI device.

Signed-off-by: default avatarMike Tipton <quic_mdtipton@quicinc.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: Cristian Marussi's avatarCristian Marussi <cristian.marussi@arm.com>
Reviewed-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
Tested-by: Cristian Marussi's avatarCristian Marussi <cristian.marussi@arm.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent c410aabd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment