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

Commit ed9b5b89 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: improve updating temperature and sram data



Currently, while updating temperature data, we turn on the Rbias
and turn it off after doing that. When the device goes to suspend,
we wait till the temperature update happens. This is undesirable
in certain scenarios. To help with that, cancel the temperature
and sram update work immediately when the device enters suspend.
Also, reduce the fuel gauge access timeout duration from 5 seconds
to 3 seconds while waiting for the memory access to be revoked.

To make sure that updating temperature and sram data completes
without interruption of the suspend process, acquire the wakeup
source when the update starts and release it once it is done.

CRs-Fixed: 774151
Change-Id: Ib5d2f4eb4a1d42557d8e99dd53da63ae2d2087f8
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 0580b551
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