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

Skip to content
Commit aab25926 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-fg: support battery hotswapping



Currently the fuel gauge driver is ignorant to battery hotswaps (switching
the battery while the device is powered from a different source). This
can cause issues because the battery profile is reloaded from OTP upon
battery insertions. If a custom profile was loaded, it will be
overwritten by the one loaded in OTP.

Fix this by rerunning the battery profile loading function whenever the
battery is inserted.

CRs-Fixed: 720242
Change-Id: I1ae877d39a2a81c97243386e8683e63bd01a45e4
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent aa1d3459
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