Skip to contentSkip to conversation

cpufreq: imx6: Fix the secondary_sel_clk clock string

PATCH In review Fabio Estevam 2 participants 3 messages May 20, 2016

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 cpufreq: imx6: Fix the secondary_sel_clk clock string

From: Fabio Estevam <[email protected]>

Commit a35fc5a33b62a6 ("cpufreq: imx: update the clock switch flow to support imx6ul") introduced the 'secondary_sel_clk' clock, which is specific for the i.mx6ul case, but used the wrong clock string inside the clk_get() function.

Use the correct clock string: "secondary_sel_clk".

This fixes a kernel crash after running the 'reboot' command on a mx6ul.

Fixes a35fc5a33b62a6 ("cpufreq: imx: update the clock switch flow to support imx6ul")
Cc <[email protected]> # 4.4.x
---
 drivers/cpufreq/imx6q-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/imx6q-cpufreq.c +1 -1
index ef1fa81..00b481e 100644
@@ -212,7 +212,7 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
 
 	if (of_machine_is_compatible("fsl,imx6ul")) {
 		pll2_bus_clk = clk_get(cpu_dev, "pll2_bus");
-		secondary_sel_clk = clk_get(cpu_dev, "secondary_sel");
+		secondary_sel_clk = clk_get(cpu_dev, "secondary_sel_clk");
 		if (IS_ERR(pll2_bus_clk) || IS_ERR(secondary_sel_clk)) {
 			dev_err(cpu_dev, "failed to get clocks specific to imx6ul\n");
 			ret = -ENOENT;
Signature · 1 line
1.9.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Commit a35fc5a33b62a6 ("cpufreq: imx: update the clock switch flow to support imx6ul") introduced the 'secondary_sel_clk' clock, which is specific for the i.mx6ul case, but used the wrong clock string inside the clk_get() function.

Quoted 8 lines

Use the correct clock string: "secondary_sel_clk".

This fixes a kernel crash after running the 'reboot' command on a mx6ul.

Fixes a35fc5a33b62a6 ("cpufreq: imx: update the clock switch flow to support imx6ul")
Cc <[email protected]> # 4.4.x
Signature · 1 line
viresh
author reviewer
#2 lore raw
In reply to Fabio Estevam
Quoted 8 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Commit a35fc5a33b62a6 ("cpufreq: imx: update the clock switch flow to support imx6ul") introduced the 'secondary_sel_clk' clock, which is specific for the i.mx6ul case, but used the wrong clock string inside the clk_get() function.

Use the correct clock string: "secondary_sel_clk".

Sorry, the 'secondary_sel' name is the one define in imx6ul.dtsi.

This patch 'fixed' the issue because it did not register cpufreq for mx6ul.

We still need to provide a proper fix for cpufreq on mx6ul. Please discard this patch.