]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: max17042_battery: Keep only critical alerts during suspend
authorVincent Cloutier <vincent@cloutier.co>
Mon, 6 Apr 2026 20:57:53 +0000 (16:57 -0400)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 3 Jun 2026 19:30:45 +0000 (21:30 +0200)
commit601885ffb5e9a0fd30c40a6c8cffeed2a04d695e
tree90a2e7c2045103c5619930b3b068bbf0baf31fbf
parent6649d933f5b91284750b4ab98ca3c7035e4f04ee
power: supply: max17042_battery: Keep only critical alerts during suspend

Disable MAX17055 dSOCi while the system is suspended so state-of-charge changes do not wake the system repeatedly. Leave SALRT armed for the critical low-battery threshold and restore runtime alert handling on resume.

Signed-off-by: Vincent Cloutier <vincent@cloutier.co>
Link: https://patch.msgid.link/20260406205759.493288-6-vincent.cloutier@icloud.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c