platform/x86: acer-wmi: Ignore AC events
BugLink: https://bugs.launchpad.net/bugs/2114239 [ Upstream commit f6bfa25c6665f8721421ea94fe506cc22f1d4b43 ] 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 <farhan.anwar8@gmail.com> Closes: https://lore.kernel.org/platform-driver-x86/2ffb529d-e7c8-4026-a3b8-120c8e7afec8@gmail.com Tested-by: Rayan Margham <rayanmargham4@gmail.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20250119201723.11102-2-W_Armin@gmx.de Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
This commit is contained in:
committed by
Mehmet Basaran
parent
9ff7e95a4e
commit
b4baaa4a4e
@@ -96,6 +96,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 {
|
||||
@@ -2341,6 +2342,9 @@ static void acer_wmi_notify(u32 value, 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);
|
||||
|
||||
Reference in New Issue
Block a user