platform/x86: wmi: Pass event data directly to legacy notify handlers
authorArmin Wolf <W_Armin@gmx.de>
Sun, 1 Sep 2024 03:10:52 +0000 (05:10 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 5 Sep 2024 15:21:59 +0000 (17:21 +0200)
commite04e2b760ddbe3d7b283a05898c3a029085cd8cd
treea117f11681ed87f6aad05a70e3570283c3d9edf5
parent56d8b784c56588cd40f98e4b1d4f6e29e3cb02b8
platform/x86: wmi: Pass event data directly to legacy notify handlers

The current legacy WMI handlers are susceptible to picking up wrong
WMI event data on systems where different WMI devices share some
notification IDs.

Prevent this by letting the WMI driver core taking care of retrieving
the event data. This also simplifies the legacy WMI handlers and their
implementation inside the WMI driver core.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240901031055.3030-3-W_Armin@gmx.de
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/hwmon/hp-wmi-sensors.c
drivers/platform/x86/acer-wmi.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/dell/dell-wmi-aio.c
drivers/platform/x86/hp/hp-wmi.c
drivers/platform/x86/huawei-wmi.c
drivers/platform/x86/lg-laptop.c
drivers/platform/x86/msi-wmi.c
drivers/platform/x86/toshiba-wmi.c
drivers/platform/x86/wmi.c
include/linux/acpi.h