mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jia Ston <ston.jia@outlook.com>
To: Jia Ston <ston.jia@outlook.com>
Cc: "hansg@kernel.org" <hansg@kernel.org>,
	"ilpo.jarvinen@linux.intel.com" <ilpo.jarvinen@linux.intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>
Subject: [PATCH v3] platform/x86: huawei-wmi: add keys for HONOR models
Date: Wed, 15 Oct 2025 13:47:19 +0000	[thread overview]
Message-ID: <20251015134645.59440-2-ston.jia@outlook.com> (raw)
In-Reply-To: <20251015132636.56840-1-ston.jia@outlook.com>

From: ston <ston.jia@outlook.com>

HONOR MagicBook X16/X14 models produced in 2025 cannot use the print and YOYO key properly.
(input input25: Unknown key pressed, code: 0x028b)
(input input25: Unknown key pressed, code: 0x028e)

This change add key_entry for HONOR printscreen key and HONOR YOYO key.

Signed-off-by: Ston Jia <ston.jia@outlook.com>
---
V1 -> V2: Add key_entry changes to commit message
V2 -> V3: Add error output 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


  reply	other threads:[~2025-10-15 13:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-14 15:19 [PATCH] " ston
2025-10-15  8:30 ` Ilpo Järvinen
2025-10-15 13:27   ` [PATCH v2] " Jia Ston
2025-10-15 13:47     ` Jia Ston [this message]
2025-10-16 10:23   ` [PATCH v4] " Jia Ston
2025-10-29  5:18     ` [Resend PATCH " Jia Ston
2025-11-05 12:23       ` Ilpo Järvinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251015134645.59440-2-ston.jia@outlook.com \
    --to=ston.jia@outlook.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®