Commit aa6709d3 authored by Sicelo A. Mhlongo's avatar Sicelo A. Mhlongo Committed by openeuler-sync-bot
Browse files

power: supply: bq27xxx: expose battery data when CI=1

stable inclusion
from stable-v5.10.182
commit ed78797a264c9f16b2f836b23abec44498275d29
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ed78797a264c9f16b2f836b23abec44498275d29



--------------------------------

[ Upstream commit 68fdbe09 ]

When the Capacity Inaccurate flag is set, the chip still provides data
about the battery, albeit inaccurate. Instead of discarding capacity
values for CI=1, expose the stale data and use the
POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED property to indicate that the
values should be used with care.

Reviewed-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarSicelo A. Mhlongo <absicsz@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Stable-dep-of: ff4c4a2a ("power: supply: bq27xxx: Move bq27xxx_battery_update() down")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit a42ca4de)
parent f4839863
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment