Skip to content

Commit f6bfa25

Browse files
Wer-Wolfij-intel
authored andcommitted
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]>
1 parent ff44b1c commit f6bfa25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/platform/x86/acer-wmi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ enum acer_wmi_event_ids {
104104
WMID_HOTKEY_EVENT = 0x1,
105105
WMID_ACCEL_OR_KBD_DOCK_EVENT = 0x5,
106106
WMID_GAMING_TURBO_KEY_EVENT = 0x7,
107+
WMID_AC_EVENT = 0x8,
107108
};
108109

109110
enum acer_wmi_predator_v4_sys_info_command {
@@ -2414,6 +2415,9 @@ static void acer_wmi_notify(union acpi_object *obj, void *context)
24142415
if (return_value.key_num == 0x5 && has_cap(ACER_CAP_PLATFORM_PROFILE))
24152416
acer_thermal_profile_change();
24162417
break;
2418+
case WMID_AC_EVENT:
2419+
/* We ignore AC events here */
2420+
break;
24172421
default:
24182422
pr_warn("Unknown function number - %d - %d\n",
24192423
return_value.function, return_value.key_num);

0 commit comments

Comments
 (0)