summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorLinus Walleij <linusw@kernel.org>2026-09-16 08:49:36 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-10-04 21:25:48 +0200
commit9a0461fb5e7cc64ed303bee3661452879ee139a1 (patch)
treeb5c9368c81dbe9a36ee6e971bc50b237eba57fc7 /rust/kernel
parent76bdf9d78245bb068207c23e9bf43d4b9bb201c3 (diff)
power: supply: ab8500_fg: Finalize current measurements
ab8500_fg_inst_curr_start() returns with cc_lock held and the CCEOC IRQ enabled. The bounded sampling loop in the load-compensated voltage path returns without calling ab8500_fg_inst_curr_finalize() when it expires, leaving both resources active. The next fuel-gauge work item then blocks on cc_lock and all cached power-supply values stop updating. The Samsung-GT-I8530-Gavini, Samsung-GT-S7710-Skomer, Samsung-SGH-I407-Kyle and Samsung-SGH-T599-Codina-TMO product trees use a bounded sampling loop in drivers/battery/abb_fuelgauge.c but still call the finalizer. Follow that pattern so the normal completion timeout also performs the required cleanup. Check the start result as well and return an uncompensated voltage if the instantaneous current transaction cannot be started or completed. Fixes: edc400e1632f ("power: supply: ab8500_fg: Break loop for measurement") Assisted-by: LLM Signed-off-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260916-ab8500-charging-v1-14-e986ed321cc6@kernel.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions