opened 08:54PM - 02 Aug 25 UTC
## Device Information
### System Model or SKU
Please select one of the followi…ng
- [ ] Framework Laptop 13 (11th Gen Intel® Core™)
- [ ] Framework Laptop 13 (12th Gen Intel® Core™)
- [ ] Framework Laptop 13 (13th Gen Intel® Core™)
- [ ] Framework Laptop 13 (AMD Ryzen™ 7040 Series)
- [ ] Framework Laptop 13 (Intel® Core™ Ultra Series 1)
- [x] Framework Laptop 13 (AMD Ryzen™ AI 300 Series)
- [ ] Framework Laptop 16 (AMD Ryzen™ 7040 Series)
### BIOS VERSION
3.04
### DIY Edition information
- Memory: [Crucial CT2K16G56C46S5](https://uk.crucial.com/memory/DDR5/CT2K16G56C46S5) 32GB DDR5-5600 SODIMM
- Storage: [SK hynix Platinum P41](https://ssd.skhynix.com/platinum_p41/) 1TB SSD
### Port/Peripheral information
1. USB-C expansion card: Framework 60W charger
2. USB-C expansion card (no peripheral)
3. USB-C expansion card (no peripheral)
4. USB-C expansion card (no peripheral)
### Standalone Operation
- [ ] Yes
- [x] No
## Describe the bug
Loading `cros_charge-control` with [probe_with_fwk_charge_control=1](https://github.com/torvalds/linux/blob/4a95bc121ccdaee04c4d72f84dbfa6b880a514b6/drivers/power/supply/cros_charge-control.c#L253-L256) _should_ provide `/sys/class/power_supply/BAT1/charge_control_{start,end}_threshold` for userspace charge control e.g. [GNOME 48's Preserve Battery Health](https://release.gnome.org/48/#preserve-battery-health) feature.
This used to work on BIOS 3.03, but regressed in 3.04.
With the BIOS limiter set to 100% and extender disabled and `cros_charge-control` enabled, in the EC logs, I see:
```
[238553.413200 Sustainer enabled: 75 ~ 100%]
[238553.423500 Sustainer updated: 75 ~ 80% (from 75 ~ 100%)]
[238553.552500 Sustainer disabled]
```
... which suggests the limits are being passed through correctly, but then being reset.
This looks like the culprit: https://github.com/FrameworkComputer/EmbeddedController/commit/d2a654ba92038b22fc6cffdbb850003f4dd2f631#diff-c97fadb96709544efeb068ef6acb07cc573d36d2b4498033b7d5f84b8a24ae41L85-L141
Connects #70.
## Operating System (please complete the following information):
- OS/Distribution: NixOS
- Version: 25
- Linux Kernel Version: 6.14.6