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

Skip to content
Commit c5c1da83 authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-qg: Update VBAT_LOW fifo_length handling



There can be a race between VBAT_LOW and FIFO_DONE irq
handler (as VBAT_LOW is triggered based on the
FIFO average). This may cause the FIFO_DONE handler
to incorrectly process the fifo-length (if the VBAT_LOW
irq handler executes just before the FIFO_DONE handler).

Fix this by updating the fifo-length only in the next
FIFO-DONE handler, after the VBAT_LOW has triggered.

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