]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: battery: Fix system wakeup on critical battery status
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 May 2026 17:03:59 +0000 (19:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 May 2026 21:06:09 +0000 (23:06 +0200)
commitc35cb4fc7231702d1e9952aec1a442f3e27df6f5
tree6e88504924c03dc1ee19d642d2ff241848ebdc73
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8
ACPI: battery: Fix system wakeup on critical battery status

Commit 0a869409a981 ("ACPI: battery: Convert the driver to a platform
one") changed the parent of the battery wakeup source to the platform
device used for driver binding, but it forgot to update the
acpi_pm_wakeup_event() call in acpi_battery_update() accordingly.

Do it now to unbreak waking up the system on critical battery status
during suspend-to-idle and during transitions to ACPI S3/S4.

Fixes: 0a869409a981 ("ACPI: battery: Convert the driver to a platform one")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: 7.0+ <stable@vger.kernel.org> # 7.0+
Link: https://patch.msgid.link/12898712.O9o76ZdvQC@rafael.j.wysocki
drivers/acpi/battery.c