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

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

power: qpnp-fg: qpnp-smbchg: always charge known battery profiles



The charger hardware will recognize a battery as unknown even if a
battery profile is forcibly loaded by the software. This can cause
devices to not charge even though a valid battery profile exists.

Fix this by exporting the POWER_SUPPLY_PROP_BATTERY_NAME from the fg's
bms power supply and reading it in the charger's battery supply. If this
is not an "Unknown Battery", disable the charge unknown battery
feature.

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