aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2023-11-04 16:49:06 +0100
committerSebastian Reichel <sebastian.reichel@collabora.com>2023-11-15 23:13:26 +0100
commitdfcb264a01a9199e8338a548731baf5bbe77ef19 (patch)
tree0bb9aba3e87e1992d09807d18fed4e25e04884b1 /tools/perf/scripts/python
parent5739da3e16ad0ebe99c31cabe960856b53eaaabe (diff)
power: supply: bq27xxx: Stop and start delayed work in suspend and resume
This driver uses delayed work to perform periodic battery state read out. This delayed work is not stopped across suspend and resume cycle. The read out can occur early in the resume cycle. In case of an I2C variant of this hardware, that read out triggers I2C transfer. That I2C transfer may happen while the I2C controller is still suspended, which produces a WARNING in the kernel log. Fix this by introducing trivial PM ops, which stop the delayed work before the system enters suspend, and schedule the delayed work right after the system resumes. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20231104154920.68585-1-marex@denx.de Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions