Re: [PATCH v2] power: supply: cros_charge-control: restore EC state on resume
From: Sebastian Reichel
Date: Sat Oct 17 2026 - 17:57:00 EST
On Mon, 05 Oct 2026 15:34:18 +1100, Andrew Pam wrote:
> The EC resets its charge control configuration when the AP powers off,
> so configured sustainer thresholds and charge behaviour are lost across
> hibernation.
>
> Nothing notices the reset. Commit 4fc88ba435da ("power: supply:
> cros_charge-control: adopt EC charge state on probe"), in the
> power-supply tree, made the driver adopt the EC's charge state, but only
> at probe, and a resume is not a probe. Sysfs therefore keeps reporting
> the configured values while the EC charges the battery to full. On a
> Framework Laptop 16 (Ryzen AI 300, charge control command version 3)
> with charge_control_end_threshold set to 80, a hibernate and resume
> cycle leaves the attribute still reading 80 while the battery charges
> past it to 100%.
>
> [...]
Applied, thanks!
[1/1] power: supply: cros_charge-control: restore EC state on resume
commit: 1f2a40f954c848dff9d8bb6d81e404f9e47f0e81
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>