cpufreq: cpufreq-dt: disable unsupported OPPs
authorLucas Stach <l.stach@pengutronix.de>
Fri, 24 Oct 2014 13:05:55 +0000 (15:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Oct 2014 17:41:34 +0000 (18:41 +0100)
commit045ee45c4ff2422a6f47e9fad7dd6cb537de940c
treeb6118c3066934e7cb2b6601a3c2a8a8055c0df0c
parentcac7f2429872d3733dc3f9915857b1691da2eb2f
cpufreq: cpufreq-dt: disable unsupported OPPs

If the regulator connected to the CPU voltage plane doesn't
support an OPP specified voltage with the acceptable tolerance
it's better to just disable the OPP instead of constantly
failing the voltage scaling later on.

Includes a fix to move initialization of opp_freq outside
the loop to avoid an endless loop from Geert Uytterhoeven.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
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/cpufreq-dt.c