lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID:
 <TY3PR01MB117988C4C4470CF84A0201F0096E8A@TY3PR01MB11798.jpnprd01.prod.outlook.com>
Date: Wed, 15 Oct 2025 17:39:41 +0800
From: Ston Jia <ston.jia@...look.com>
To: Hans de Goede <hansg@...nel.org>,
 Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Cc: platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2] platform/x86: huawei-wmi: add keys for HONOR models

>From 940eaac1a1e3dedfc885e94af2fe717aea5d74c1 Mon Sep 17 00:00:00 2001
From: ston <ston.jia@...look.com>
Date: Tue, 14 Oct 2025 21:19:26 +0800
Subject: [PATCH v2] platform/x86: huawei-wmi: add keys for HONOR models

HONOR MagicBook X16/X14 models produced in 2025 cannot use the print and YOYO key properly.

This change add key_entry for HONOR printscreen key and HONOR YOYO key.
It maps the key code 0x28b to KEY_NOTIFICATION_CENTER.
It maps the key code 0x28e to KEY_PRINT.

Signed-off-by: Ston Jia <ston.jia@...look.com>
---
V1 -> V2: Add key_entry changes to commit message

 drivers/platform/x86/huawei-wmi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c
index c3772df34..8a4c54089 100644
--- a/drivers/platform/x86/huawei-wmi.c
+++ b/drivers/platform/x86/huawei-wmi.c
@@ -81,6 +81,10 @@ static const struct key_entry huawei_wmi_keymap[] = {
        { KE_KEY,    0x289, { KEY_WLAN } },
        // Huawei |M| key
        { KE_KEY,    0x28a, { KEY_CONFIG } },
+       // HONOR YOYO key
+       { KE_KEY,    0x28b, { KEY_NOTIFICATION_CENTER } },
+       // HONOR print screen
+       { KE_KEY,    0x28e, { KEY_PRINT } },
        // Keyboard backlit
        { KE_IGNORE, 0x293, { KEY_KBDILLUMTOGGLE } },
        { KE_IGNORE, 0x294, { KEY_KBDILLUMUP } },
--
2.51.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ