power: supply: rk817: query battery properties right after resume
authorMaximilian Weigand <mweigand@mweigand.net>
Wed, 14 Jun 2023 18:10:43 +0000 (20:10 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 14 Sep 2023 15:42:36 +0000 (17:42 +0200)
commit1769142a14c34a8acd67657bc3e637f22f75e026
treebca10ef45c31f9042407d5a4d890a7a553aa4876
parent814755c48f8b2c3e83b3c11535c48ab416128978
power: supply: rk817: query battery properties right after resume

The driver reads battery properties every 8 seconds. In order to prevent
problems with wrong property values right after resume, trigger an
update of those properties on resuming the system and restart the
8-second interval from there.

Signed-off-by: Maximilian Weigand <mweigand@mweigand.net>
Link: https://lore.kernel.org/r/20230601-rk817_query_at_resume-v1-1-630b0adefbd9@mweigand.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/rk817_charger.c