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

Skip to content
Commit 30bb37f3 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power: qpnp-linear-charger: Fix interrupt storm due to VBAT_DET irq



VBAT_DET interrupt storm is observed when battery voltage is close to
VBAT_DET threshold. Fix this by overriding VBAT_DET comparator and
disabling VBAT_DET irq as follows:

1. During charging phase:
Override VBAT_DET comparator to 0 to always force charging.

2. During discharging phase and end-of-charge:
Enable VBAT_DET based recharge (enable VBAT_DET comparator and
irq)

There are scenarios where a charger gets inserted when SOC > resume_soc
and VBAT above VBAT_DET. In this case charging does not start, which can
be annoying to the user. Fix this by always enabling charging on charger
insertion irrespective of resume_soc or VBAT_DET thresholds.

CRs-Fixed: 679886
Change-Id: I2ff481ee83a5969206e2a1456e5240b53a98353a
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent b6e39623
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