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

Skip to content
Commit 79579ba5 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

power: smb5-lib: Fix charger reverse boost on soft JEITA



Currently, USB input will be suspended on soft JEITA condition when
Vbatt goes above JEITA float voltage to avoid reverse boost as per the
hardware recommendation, but this is causing charging fluctuations
whenever the battery goes in and out of soft JEITA condition.

As per the hardware recommendation, disable charging instead of
suspending input, and utilize the charge inhibit feature to fix possible
reverse boost.

Since this configuration requires to know the FCC/FV values that needs
to be applied for soft JEITA conditions, add support to read it from
battery profile device tree through the following properties:
qcom,jeita-soft-fcc-ua, qcom,jeita-soft-fv-uv.

This change has also been updated to address cyclomatic complexity
issues in smb5_batt_get_prop().

Change-Id: I1a54d30eb878aab34abd5d4e22d8f09ed24e115d
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent ba39442f
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