mbox series

[0/2] rk817_charger full charge capacity fixes

Message ID 20240926144346.94630-1-macroalpha82@gmail.com
Headers show
Series rk817_charger full charge capacity fixes | expand

Message

Chris Morgan Sept. 26, 2024, 2:43 p.m. UTC
From: Chris Morgan <macromorgan@hotmail.com>

The code for fully charged capacity is still causing problems when
invalid values are reported by the charger (usually after resume from
suspend). Stop attempting to auto calibrate this and instead allow the
value to be writeable from userspace.

Chris Morgan (2):
  power: supply: rk817: stop updating info in suspend
  power: supply: rk817: Update battery capacity calibration

 drivers/power/supply/rk817_charger.c | 112 ++++++++++++++++-----------
 1 file changed, 65 insertions(+), 47 deletions(-)

Comments

Sebastian Reichel Oct. 16, 2024, 9:41 p.m. UTC | #1
On Thu, 26 Sep 2024 09:43:44 -0500, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> The code for fully charged capacity is still causing problems when
> invalid values are reported by the charger (usually after resume from
> suspend). Stop attempting to auto calibrate this and instead allow the
> value to be writeable from userspace.
> 
> [...]

Applied, thanks!

[1/2] power: supply: rk817: stop updating info in suspend
      commit: bded860c3110a45fe091f67b2fe6f3b2bb096165
[2/2] power: supply: rk817: Update battery capacity calibration
      commit: 1e5335d00707220b46c28ab09cd09a1837b84978

Best regards,