Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 940f6990 authored by David Collins's avatar David Collins
Browse files

regulator: cpr-regulator: correct corner handling in cpr_regulator_enable



Modify the cpr-regulator driver so that cpr_corner_restore() is
called in place of cpr_corner_switch() in the
cpr_regulator_enable() function.  This is needed because the
cpr_corner_switch() call will always have no effect since the
corner value passed in is cpr_vreg->corner.  By not updating the
corner related register values, it is possible to get stuck in a
situation where CPR is enabled for a corner but the target
quotient being used corresponds to a different corner.  If the
new corner is supposed to have a higher target quotient than the
previous corner, then this situation can result in a crash due to
undervolting the processor.

Change-Id: I4f7192a187641e140062ebea72c4c62edddc6421
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent ff1ff8e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment