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

Commit 4949c5d9 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: disable charging for unknown batteries



Currently, we disable the charging only when the battery is not
recognized. Also if a battery happens to match the default
OTP profile, then the charging should be disabled. In addition,
charging is disabled by using USB_SUSPEND_SRC_BIT which is
not desirable as it limits the inflow current.

Disable the charging by using the charge_en bit which will still
allow the USB current in and block it going into the battery.

CRs-Fixed: 810866
Change-Id: I55549938f514780701a10e3239b6172c9dbd1108
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 01e81683
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