power: qpnp-fg: fix first_soc_done completion
The logic behind the first_soc_done completion is incorrect. Currently,
it is completed when the battery is missing, when it should be
reinitialized instead. Also, it should be completed after receiving a
first_soc_done interrupt. These bugs can cause the first SOC time to be
delayed by up to 3 seconds.
Make these changes to fix the delays.
CRs-Fixed: 904311
Change-Id: I79a09e5abdc4bf6e214f20c98d2d53165ddc1bea
Signed-off-by:
Xiaozhe Shi <xiaozhes@codeaurora.org>
Loading
Please register or sign in to comment