]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: imx6q: Fix clock enable balance
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 26 Aug 2013 11:48:36 +0000 (13:48 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 26 Aug 2013 14:04:07 +0000 (19:34 +0530)
commit67f81a51a81f46ecf2546f871b7bd514998e669a
treeec3d8cbd4006c2c45e2afb5725683efc69fc39a3
parentbd4bb5a29fc751bde99dd3a3fee3205b03fa26a5
cpufreq: imx6q: Fix clock enable balance

For changing the cpu frequency the i.MX6q has to be switched to some
intermediate clock during the PLL reprogramming. The driver tries
to be clever to keep the enable count correct but gets it wrong. If
the cpufreq is increased it calls clk_disable_unprepare twice
on pll2_pfd2_396m. This puts all other devices which get their clock
from pll2_pfd2_396m into a nonworking state.

Fix this by removing the clk enabling/disabling altogether since the
clk core will do this automatically during a reparent.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/imx6q-cpufreq.c