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

Skip to content
Commit 2d8a2c6e authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

power: smb1390: Don't allow negative CP_ILIM override votes



After both charge pumps get disabled in taper, userspace revokes its
override request with a negative vote. This negative vote is supposed to
cause the voter to remove itself from the election by voting "false".
But this doesn't happen and the negative value gets processed by the
voter callback and gets written to the register, which manifests as a
maxing out of the ILIM value, which is not the intended behaviour.

Prevent negative values of CP ILIM requests from being set by making the
voter vote "false" for those values.

Change-Id: If8ff30ae14a4770a0a8a3f17a45b41deedfea1e0
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent a67a1c7e
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