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:
Xiaozhe Shi <xiaozhes@codeaurora.org>
Loading
Please register or sign in to comment