power: battery: Fix low vote issue with FCC taper stepper
While in taper mode, the effective result of FCC is obtained and a reduction of 200mA is made until the taper condition goes away. if another voter cuts in and votes lower, which results in lower FCC, a 200mA will be deducted from the new low FCC. Note the result cannot be reversed even after the vote is cancelled or updated. Occasionally, it may have undesired consequences. A very low vote voting in and out in the middle can leave a low FCC for the rest of charging cycle. Solve the problem by adopting a dedicated FCC voter in taper mode and doing the reduction with reference to its last vote. CRs-Fixed: 2357939 Change-Id: I8b0c1e353659c6368ea665471b0345aa24a92eb8 Signed-off-by:Subbaraman Narayanamurthy <subbaram@codeaurora.org> Signed-off-by:
Harry Yang <harryy@codeaurora.org> Signed-off-by:
Guru Das Srinagesh <gurus@codeaurora.org>
Loading
Please register or sign in to comment