power: qpnp-fg: Improve Rbias SW workaround
Currently, with our SW based Rbias control, we keep the Rbias
on when the device is awake and turn it off when the device
enters suspend. However, we only need to keep Rbias on for the
time when we need temperature update from FG and it can be kept
off after reading the temperature.
While improving the way we control Rbias by adding a separate
work for temperature updates, increase the frequency of
temperature update to 10 seconds from 30 seconds.
Since a new completion (sram_access_revoked) is added to wait upon
before doing the temperature update, rename the existing completion
(sram_access to sram_access_granted) to better reflect the use.
CRs-Fixed: 743450
Change-Id: I0b9231850738a55081d5bba79baa6bcdd4013856
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment