aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSicelo A. Mhlongo <absicsz@gmail.com>2023-01-02 11:13:26 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2023-02-03 13:35:04 +0100
commite2b018cb55151cbee2c4b8f48ef731f0a683b9b6 (patch)
treef3b6d89de26abf199cdda2c85af090480c83f81e /tools/perf/scripts/python/export-to-postgresql.py
parentpower: supply: bq256xx: Init ichg/vbat value with chip default value (diff)
downloadwireguard-linux-e2b018cb55151cbee2c4b8f48ef731f0a683b9b6.tar.xz
wireguard-linux-e2b018cb55151cbee2c4b8f48ef731f0a683b9b6.zip
power: supply: bq27xxx: fix reporting critical level
The EDV1/SOC1 flag is set when the battery voltage drops below the threshold set in EEPROM. From observing the capacity_level reported by the driver, and reading the datasheet, EDV1 remains set even when EDVF/SOCF gets set. Thus, bq27xxx_battery_capacity_level() never reaches the CAPACITY_LEVEL_CRITICAL code path, since CAPACITY_LEVEL_LOW takes precedence. This commit fixes the issue by swapping the order in which the flags are tested. It was tested with bq27200 in the Nokia N900. Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions