]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: imx6q: fix speed grading regression on i.MX6 QuadPlus
authorLucas Stach <l.stach@pengutronix.de>
Mon, 11 Dec 2017 13:19:00 +0000 (14:19 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Dec 2017 11:06:37 +0000 (12:06 +0100)
commit09eac848cad1f8d7cec56cd1d083d63920397dd1
tree3c9e7c72fd78cbf9d3cb980b5743a5df238cfad2
parentf46f7a864ffeb8668eeb7ce6a8595148d52edaeb
cpufreq: imx6q: fix speed grading regression on i.MX6 QuadPlus

The commit moving the speed grading check to the cpufreq driver introduced
some additional checks, so the OPP disable is only attempted on SoCs where
those OPPs are present. The compatible checks are missing the QuadPlus
compatible, so invalid OPPs are not correctly disabled there.

Move both checks to a single condition, so we don't need to sprinkle even
more calls to of_machine_is_compatible().

Fixes: 1c1fb1a1e191 (cpufreq: imx6q: Move speed grading check to cpufreq driver)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/imx6q-cpufreq.c