Commit de7a4312 authored by Alexandru Sorodoc's avatar Alexandru Sorodoc Committed by sanglipeng
Browse files

platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0

stable inclusion
from stable-v5.10.185
commit 37bcc48e7dd15a8afcc8f66e16f283303a7f6d38
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=37bcc48e7dd15a8afcc8f66e16f283303a7f6d38



--------------------------------

[ Upstream commit 362c1f2e ]

On ASUS GU604V the key 0x7B is issued when the charger is connected or
disconnected, and key 0xC0 is issued when an external display is
connected or disconnected.

This commit maps them to KE_IGNORE to slience kernel messages about
unknown keys, such as:

    kernel: asus_wmi: Unknown key code 0x7b

Signed-off-by: default avatarAlexandru Sorodoc <ealex95@gmail.com>
Link: https://lore.kernel.org/r/20230512101517.47416-1-ealex95@gmail.com


Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent f651a050
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment