Skip to content
Commit 2288fa1a authored by Sicelo A. Mhlongo's avatar Sicelo A. Mhlongo Committed by Greg Kroah-Hartman
Browse files

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



[ 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>
parent 0ab06468
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment