summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/task-analyzer-report
diff options
context:
space:
mode:
authorJianing Li <m13940358460@163.com>2026-07-27 14:48:25 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-07-27 14:47:35 +0200
commit659cc3d8d5ef246263873fce72c8cadeeed073cc (patch)
treea508d73ebb2beaa0be0c14654368a36b000741ff /tools/perf/scripts/python/bin/task-analyzer-report
parent645448becbd0b52216c6741897dd412f9ff1b925 (diff)
power: supply: max17040: propagate register read errors
max17040_get_vcell() and max17040_get_soc() ignore errors returned by regmap_read(). When an I2C transfer fails, the uninitialized register value is converted and reported to userspace as a valid voltage or state of charge. The polling worker can also replace the cached state of charge with the bogus value and emit a spurious change event. Propagate read errors through the power supply get_property callback and keep the last valid cached state of charge when polling fails. Fixes: c6f4a42de60b ("Add MAX17040 Fuel Gauge driver") Cc: stable@vger.kernel.org Signed-off-by: Jianing Li <m13940358460@163.com> Link: https://patch.msgid.link/20260727064825.948-1-m13940358460@163.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-report')
0 files changed, 0 insertions, 0 deletions