diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-16 08:49:32 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-10-04 21:25:48 +0200 |
| commit | 1098c619ce7595a77a8c2e366a703e9fc5f29bf7 (patch) | |
| tree | 9961f0bb5fd34e0a4caf6463a2b2a66b5b1de455 /rust/kernel/alloc/allocator | |
| parent | dcecf527632297011153f088573689a1ad1de790 (diff) | |
power: supply: ab8500_charger: Handle detection errors
ab8500_charger_detect_chargers() returns either a charger bitmask or
a negative register-access error. The probe and component-bind paths
use a negative return value as a bitmask, making failed reads appear
as both AC and USB connections.
Propagate detection errors and release the bind-time workqueue on
failure.
Fixes: 84edbeeab67c ("ab8500-charger: AB8500 charger driver")
Fixes: 1c1f13a006ed ("power: supply: ab8500: Move to componentized binding")
Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260916-ab8500-charging-v1-10-e986ed321cc6@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
