linux-stable/include/linux/power
Marek Vasut dfcb264a01 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>
2023-11-15 23:13:26 +01:00
..
bq27xxx_battery.h power: supply: bq27xxx: Stop and start delayed work in suspend and resume 2023-11-15 23:13:26 +01:00
bq2415x_charger.h
bq24190_charger.h
bq24735-charger.h
bq25890_charger.h
charger-manager.h
gpio-charger.h
jz4740-battery.h
max17042_battery.h
power_on_reason.h power: reset: at91-reset: add sysfs interface to the power on reason 2023-07-19 23:15:21 +02:00
sbs-battery.h
smartreflex.h
twl4030_madc_battery.h