From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C86635C613; Wed, 10 Dec 2025 07:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765352148; cv=none; b=soP0g7OGSDSycyi8YU42Zz6i+7sdaYn3uucFN8ay+ghYFkv1QyqP/hNa8b1PF/8rU5FWQ5Dh1Xs59hi1Z++hFQ5+ppWeIz10rie3IxfCzrUwtQTEfxmWMNvitItpflXO30dJf4/XE3yb8Xh5/2WjpReB23i6A8ltbiV+waqF/iI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765352148; c=relaxed/simple; bh=Lr36qJ5I/9Si14Rg0GRMkmC3Yee7KvGilMp7N196LcY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=inHnHO7wNkxdO/pWetlnbmFOzpnbeA0QruC6faDI8AMt6XDBFmqfxVRwtT/dGrml9eZN1XXe7yIZkqyhCNq3tJjEaoRozNK0Au6t40EyIHnXAyRIC9dLvGfv2/Mvx4qXN7Yhsd8a25UIcnnu3fHlq3L+YpCf7aFKhrNoRHMMbas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dncS8vP1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dncS8vP1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70F41C4CEF1; Wed, 10 Dec 2025 07:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765352148; bh=Lr36qJ5I/9Si14Rg0GRMkmC3Yee7KvGilMp7N196LcY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dncS8vP14D/AlrB4kBaQLA5pBYGMog4RbX2cWgiMj1oX0joV3AbI3QhWS/R6iYbyf Bb5pSekzUpaJXT8mLbOzw0YgQyRI8XsrHk+z8HuZb7nbXn0ifP4izqK9+ozPXl/4br 8M0jVZ91HO2BbDrUnteQHf/18Ps1SoJ8Zm682Qjg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ston Jia , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sasha Levin Subject: [PATCH 6.17 40/60] platform/x86: huawei-wmi: add keys for HONOR models Date: Wed, 10 Dec 2025 16:30:10 +0900 Message-ID: <20251210072948.862495188@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251210072947.850479903@linuxfoundation.org> References: <20251210072947.850479903@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jia Ston [ Upstream commit 5c72329716d0858621021193330594d5d26bf44d ] HONOR MagicBook X16/X14 models produced in 2025 cannot use the Print Screen and YOYO keys properly, with the system reporting them as unknown key presses (codes: 0x028b and 0x028e). To resolve this, a key_entry is added for both the HONOR Print Screen key and the HONOR YOYO key, ensuring they function correctly on these models. Signed-off-by: Ston Jia Link: https://patch.msgid.link/20251029051804.220111-1-ston.jia@outlook.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- 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 c3772df34679f..8a4c54089ace3 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