diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-16 08:49:37 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-10-04 21:25:48 +0200 |
| commit | edafb2e4642b72b0f86ce5990d5c29c116bb642b (patch) | |
| tree | 3ce365a9ecb7eb5ac06dd0503d5ae564a0db3ab6 /rust/kernel/alloc | |
| parent | 9a0461fb5e7cc64ed303bee3661452879ee139a1 (diff) | |
power: supply: ab8500_fg: Avoid reserved AB8505 CCConf bit
AB8500 defines CCConf bit 1 as CCDeepSleepEna, but AB8505 reserves
bits 7:1 and only defines bit 0, CCPwrUpEna. The fuel-gauge driver
currently writes both bits whenever it starts the coulomb counter.
The Samsung-GT-S7710-Skomer and related Samsung product trees use the
same unconditional value in their fuel-gauge drivers, so they provide
no AB8505 workaround to carry over. Select the value from the detected
PMIC variant instead, retaining the deep-sleep enable bit on all
existing non-AB8505 paths and avoiding the reserved bit on AB8505.
Fixes: a982362c1723 ("mfd: Support for the AB8500 AB8505 variant")
Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260916-ab8500-charging-v1-15-e986ed321cc6@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
