diff options
| author | Armin Wolf <[email protected]> | 2025-01-19 20:17:22 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-01-20 12:16:57 +0000 |
| commit | f6bfa25c6665f8721421ea94fe506cc22f1d4b43 (patch) | |
| tree | f1ae53eaece01cf9acd7edee6e47614596899779 | |
| parent | platform/mellanox: mlxreg-io: use sysfs_emit() instead of sprintf() (diff) | |
| download | kernel-f6bfa25c6665f8721421ea94fe506cc22f1d4b43.tar.gz kernel-f6bfa25c6665f8721421ea94fe506cc22f1d4b43.zip | |
platform/x86: acer-wmi: Ignore AC events
On the Acer Swift SFG14-41, the events 8 - 1 and 8 - 0 are printed on
AC connect/disconnect. Ignore those events to avoid spamming the
kernel log with error messages.
Reported-by: Farhan Anwar <[email protected]>
Closes: https://lore.kernel.org/platform-driver-x86/[email protected]
Tested-by: Rayan Margham <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Armin Wolf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
| -rw-r--r-- | drivers/platform/x86/acer-wmi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index ae2a7c93ab72..a85c881d1f24 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -104,6 +104,7 @@ enum acer_wmi_event_ids { WMID_HOTKEY_EVENT = 0x1, WMID_ACCEL_OR_KBD_DOCK_EVENT = 0x5, WMID_GAMING_TURBO_KEY_EVENT = 0x7, + WMID_AC_EVENT = 0x8, }; enum acer_wmi_predator_v4_sys_info_command { @@ -2414,6 +2415,9 @@ static void acer_wmi_notify(union acpi_object *obj, void *context) if (return_value.key_num == 0x5 && has_cap(ACER_CAP_PLATFORM_PROFILE)) acer_thermal_profile_change(); break; + case WMID_AC_EVENT: + /* We ignore AC events here */ + break; default: pr_warn("Unknown function number - %d - %d\n", return_value.function, return_value.key_num); |
