From: Kevin Hilman Date: Fri, 2 Mar 2012 22:08:57 +0000 (-0800) Subject: ARM: OMAP2+: voltage: ensure voltage used is exact voltage from OPP table X-Git-Tag: omap-pm-regulator-for-v3.5^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c15f1d84bb3ddd668593e9bca53221a2f82e9e99;p=pandora-kernel.git ARM: OMAP2+: voltage: ensure voltage used is exact voltage from OPP table When using the SMPS regulators to scale voltages, the regulator framework may pass a minimum voltage that is not an exact OPP voltage. For the VC/VP controlled voltage domains, we must ensure that the voltage requested is the exact voltage from the OPP table. This is especially critical when using SR. To fix, voltdm_scale() uses the target voltage passed to walk through the OPP voltages until it finds a voltage that is >= one of the OPP voltages. Cc: Tero Kristo Cc: Nishanth Menon Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed