diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-16 08:49:30 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-10-04 21:25:48 +0200 |
| commit | 2b697df2b6394613a3bb168adfa8a845ad7c83d9 (patch) | |
| tree | ef4ffdc5d7de47623569d01ba2e714665a9ea09a /rust/kernel | |
| parent | 3e1d2517347f6bb72f74e63ec77d1634385fbf21 (diff) | |
power: supply: ab8500_charger: Decode AB8505 USB status
AB8505 keeps USB link status in the same bit position as AB8500 but
defines a different five-bit value table. Reusing the AB8500 enum
treats several reserved AB8505 values as chargers and misidentifies
the AB8505 charger-fault and DM-high states.
Add an AB8505 decoder, reject reserved and non-charging states, and
retain conservative current limits for supported charger types.
Restrict the invalid-link workaround to AB8500 and stop processing
when the status register cannot be read.
Fixes: d4337660d069 ("ab8500-charger: Add AB8505_USB_LINK_STATUS")
Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260916-ab8500-charging-v1-8-e986ed321cc6@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
