diff options
| author | 2026-08-24 16:42:17 +0800 | |
|---|---|---|
| committer | 2026-09-10 00:43:06 +0200 | |
| commit | 4a35810a847411c466a15d1737d11e8e818dc197 (patch) | |
| tree | 3867808e0a69f5c5f0cf2db7a3760cbb7aa979d6 /scripts/Makefile.thinlto | |
| parent | power: supply: bq27xxx: add support for bq27z746 (diff) | |
power: supply: bq2515x: Propagate charge-enable read errors
bq2515x_get_charge_disable() returns bool even though reading the
charger-disable state can fail. A negative error is therefore converted to
true, so POWER_SUPPLY_PROP_STATUS reports NOT_CHARGING with success instead
of propagating the failure. The GPIO read is not checked for errors either.
Return an int from the helper, check both reads, and only convert a valid
charger-disable state to the charging-status boolean.
Fixes: 44908459275e ("power: supply: bq25150 introduce the bq25150")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Link: https://patch.msgid.link/20260824084217.670213-1-lilinmao@kylinos.cn
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
