]> asedeno.scripts.mit.edu Git - linux.git/commit
cpufreq: imx-cpufreq-dt: Fix no OPPs available on unfused parts
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 29 May 2019 11:52:08 +0000 (11:52 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 3 Jun 2019 05:34:13 +0000 (11:04 +0530)
commitc2147585cce028e46a0ea8b24be3a11716ee6e4f
tree203b55fb4a507051d3773372093a5ac774b91054
parenta02177a39344b643dccfa3b18fa5c1fc4984e1e5
cpufreq: imx-cpufreq-dt: Fix no OPPs available on unfused parts

Early samples without fuses written report "0 0" which means consumer
segment and minimum speed grading. According to datasheet the minimum speed
grade is not supported for consumer parts so all OPPs are disabled
which results in stack dumps later on.

Fix by clamping minimum consumer speed grade to 1 on imx8mm and imx8mq.

Fixes: 4d28ba1d62c4 ("cpufreq: Add imx-cpufreq-dt driver")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
[ Viresh: s/minumum/minimum/ in patch and log ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/imx-cpufreq-dt.c