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

Commit 4eef3781 authored by Shiju Mathew's avatar Shiju Mathew Committed by Gerrit - the friendly Code Review server
Browse files

power: bcl_peripheral: Recalibrate BCL after FG switch current sensing



There is a race condition in software between when
the BCL driver reads the gain/offset registers for
BCL adc calibration and when fuel gauge decides
whether to use internal or external current sensing.
This can cause the BCL driver to load the gain/offset
for the wrong channel if the fuel gauge changes the
current sensing registers after the BCL. This patch
address this issue by recalibrating BCL after fuel
gauge makes the switch.

Change-Id: Id0d182d750e6a57a3545179b7c1d4dc1f44a6200
Signed-off-by: default avatarShiju Mathew <shijum@codeaurora.org>
parent db644c69
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