diff options
author | Henrik Grimler <[email protected]> | 2021-09-29 20:14:17 +0200 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2021-10-02 17:49:08 +0200 |
commit | 223a3b82834f036a62aa831f67cbf1f1d644c6e2 (patch) | |
tree | 5ca4f3aaad4578e71f7954d8ca72ead4c8227523 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 0fd1cdf222a092ec0a08968913aeaefd6ce2d298 (diff) |
power: supply: max17042_battery: use VFSOC for capacity when no rsns
On Galaxy S3 (i9300/i9305), which has the max17047 fuel gauge and no
current sense resistor (rsns), the RepSOC register does not provide an
accurate state of charge value. The reported value is wrong, and does
not change over time. VFSOC however, which uses the voltage fuel gauge
to determine the state of charge, always shows an accurate value.
For devices without current sense, VFSOC is already used for the
soc-alert (0x0003 is written to MiscCFG register), so with this change
the source of the alert and the PROP_CAPACITY value match.
Fixes: 359ab9f5b154 ("power_supply: Add MAX17042 Fuel Gauge Driver")
Cc: <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Suggested-by: Wolfgang Wiedmeyer <[email protected]>
Signed-off-by: Henrik Grimler <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions