[PATCH v4] cpufreq: scmi: Skip SCMI devices that aren't used by the CPUs

Viresh Kumar viresh.kumar at linaro.org
Mon May 19 03:40:12 PDT 2025


On 14-05-25, 20:53, Mike Tipton wrote:
> 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: Mike Tipton <quic_mdtipton at quicinc.com>
> Reviewed-by: Peng Fan <peng.fan at nxp.com>
> Reviewed-by: Cristian Marussi <cristian.marussi at arm.com>
> Reviewed-by: Sudeep Holla <sudeep.holla at arm.com>
> Tested-by: Cristian Marussi <cristian.marussi at arm.com>

Applied. Thanks.

-- 
viresh



More information about the linux-arm-kernel mailing list