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

Skip to content
Commit 4c528de1 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: vm-bms: Allow clients to specify their power state



The driver forces BMS to S3 state (no VBAT sampling) while in
suspend. There are certain usecases (such as voice call) which
can consume hi-power even during suspend causing the BMS to
loose accuracy if its in sleep.

Use the HI_POWER and LOW_POWER power_supply properties to indicate
the power-states of the clients (usecase). Check this state while
entering into suspend and do not force BMS into sleep if a hi-power
state is requested.

While at it, reduce the BMS wakeup-timeout to 500ms to allow system
to suspend immediately.

Change-Id: Idd21ae701c60fc023f0779aff0240794d725b2c8
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent c7050dbb
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