Patch "clk: scpi: don't add cpufreq device if the scpi dvfs node is disabled" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
clk: scpi: don't add cpufreq device if the scpi dvfs node is disabled
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
clk-scpi-don-t-add-cpufreq-device-if-the-scpi-dvfs-node-is-disabled.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
67bcc2c5f1da8c5bb58e72354274ea5c59a3950aMon Sep 17 00:00:00 2001
From: Sudeep Holla <[email protected]>
Date: Fri, 6 Jan 2017 12:34:30 +0000
Subject: clk: scpi: don't add cpufreq device if the scpi dvfs node is disabled
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Sudeep Holla <[email protected]>
commit 67bcc2c5f1da8c5bb58e72354274ea5c59a3950a upstream.
Currently we add the virtual cpufreq device unconditionally even when the SCPI DVFS clock provider node is disabled. This will cause cpufreq driver to throw errors when it gets initailised on boot/modprobe and also when the CPUs are hot-plugged back in.
This patch fixes the issue by adding the virtual cpufreq device only if the SCPI DVFS clock provider is available and registered.
--- drivers/clk/clk-scpi.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/clk/clk-scpi.c +8 -6
@@ -290,13 +290,15 @@ static int scpi_clocks_probe(struct platof_node_put (child);return ret; } - } -/* Add the virtual cpufreq device */ - cpufreq_dev =platform_device_register_simple ("scpi-cpufreq" , --1 ,NULL ,0 ); -if (IS_ERR (cpufreq_dev)) -pr_warn ("unable to register cpufreq device" ); +if (match->data != &scpi_dvfs_ops) +continue ; +/* Add the virtual cpufreq device if it's DVFS clock provider */ + cpufreq_dev =platform_device_register_simple ("scpi-cpufreq" , +-1 ,NULL ,0 ); +if (IS_ERR (cpufreq_dev)) +pr_warn ("unable to register cpufreq device" ); + }return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/clk-scpi-don-t-add-cpufreq-device-if-the-scpi-dvfs-node-is-disabled.patch