]> Gentwo Git Trees - linux/.git/commit
power: supply: rk817: stop updating info in suspend
authorChris Morgan <macromorgan@hotmail.com>
Thu, 26 Sep 2024 14:43:45 +0000 (09:43 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 16 Oct 2024 21:40:02 +0000 (23:40 +0200)
commitbded860c3110a45fe091f67b2fe6f3b2bb096165
tree4ea07b87bec8c9c4943348a9d888faaa97ff586b
parentc46a9ee5c6210682611d3d4276436c23a95e1996
power: supply: rk817: stop updating info in suspend

The driver has a thread that checks the battery every 8 seconds. Stop
this thread during device suspend as while the device is suspended not
all values seem to be read correctly (such as battery voltage). The
resume function triggers the thread to start again.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20240926144346.94630-2-macroalpha82@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/rk817_charger.c