Re: [PATCH] power: supply: cw2015: Add CHARGE_NOW support
From: Tobias Schramm <t.schramm@manjaro.org>
Date: 2021-06-19 09:52:48
Hi all, Am 18.06.21 um 14:30 schrieb Paul Fertser: ...
Are you sure the chip reports current state of charge relative to the full design capacity rather than to the latest auto-calibrated full capacity? That would mean that over time as the cells wear out cw_bat->soc (PROP_CAPACITY) is never going to be reaching 100; does this match your experience?
As far as I'm aware the gauge reports SoC relative to what it believes to be the the current, auto-calibrated full battery capacity. However, since I don't know how to extract that value from the gauge we just always assume it to be the design capacity [1]. Since we inquire the gauge about current SoC directly [2] there is no way for any miscalculation on our end preventing it from reaching 100%. Cheers, Tobias [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/power/supply/cw2015_battery.c#n507 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/power/supply/cw2015_battery.c#n368