]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: wmi: Implement proper shutdown handling
authorArmin Wolf <W_Armin@gmx.de>
Sat, 5 Oct 2024 21:38:25 +0000 (23:38 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 9 Oct 2024 09:04:48 +0000 (12:04 +0300)
commitd12586e1072d92070783c854819a0ca8c82c5439
tree5e269c19be1b5049fdb965d482e773c63abffcbf
parent066c779b094b63754e0742ad8675d72d6c0a46f6
platform/x86: wmi: Implement proper shutdown handling

When performing a system shutdown under Windows, all WMI clients are
terminated. This means that the ACPI BIOS might expect all WMI devices
to be disabled when shutting down.

Emulate this behaviour by disabling all active WMI devices during
shutdown. Also introduce a new WMI driver callback to allow WMI drivers
to perform any device-specific actions before disabling the WMI device.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20241005213825.701887-2-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/wmi/driver-development-guide.rst
drivers/platform/x86/wmi.c
include/linux/wmi.h