]> 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)
commit775d8e34afc548b3373c20d7de118504782e881a
tree3c9e7c72fd78cbf9d3cb980b5743a5df238cfad2
parent6d26e52fc39dd1b277640428ccc4ab1abd836cd8
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: 5450a82e17f3 (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