Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp490949pxu; Thu, 3 Dec 2020 05:39:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwqX7jH/OsKeH01pvi9NQgdy6CHRJ7V3B4QM0lk5bNGhrKohHXXEHpj7BTltysfSh4PlV+ X-Received: by 2002:aa7:d545:: with SMTP id u5mr2797969edr.113.1607002777864; Thu, 03 Dec 2020 05:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607002777; cv=none; d=google.com; s=arc-20160816; b=swBaC/PKgIWZjTyV2A/o1YJsJEYlyclAxNMNc102MmN60Vh1A/hk6vSQmqvpvUTQTS 2my92K62YCxT0YJE6LeTupG9E2Gcd5wnUF0peq4HO+bJEi3dGFymDJ6AB56NcVN+dcxs m2wgj6azk20ZF1SaacDbk/OdTcaWpWBj+QmcxsoejcogZuIhcjpL2vdHexH4GdLl1ojf TziO+WlHTQFUrVtgPSlDGrXwF5Eqzh9pg6k286ZNp/vftxiMOC1Pnc5SuAzLZlC8JS7g ZooeLvwqi93YySRZwSfJMvCCqlxD+1Du/6/ba6cAuvDvlH7tcsFli2u9h13wYiC3fFqK OhTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/nnTRHV4Ce0tQQYqOcQTSNHa2nZsLtJyRPLW++mebO0=; b=wtOSa4m8w4VNSF6xUdVe1q2V9r0iV3ULX9wkjtUHLGTI0Owlzi0RIYwz2UKQrz8u3t Go0yJu+CXoJzKabScdlskr2GSu2FcC1eSikKFYDD60O115cAgupITxCTUiJDGcc3pU9f 7cEB7V7EBjeBwC2KwwcSIBAWWzpMSKzgzBXh92ilV7NLBSxOSxCP4U5LTpu61E+U7PZ6 KG2idszsPz0oIL739gwFL9RlwLuf7WRQm2JFGptoa19h9oVLCwvkol9wZi+EkXlqxxfU VrG08FaPgZ76xy/eTwMbXqETFiWW+OjXeV7BS09a+HGWBwO8njvil/GWaaA9RwRnbFXg sS+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si1145433ejb.216.2020.12.03.05.39.11; Thu, 03 Dec 2020 05:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436575AbgLCNa0 (ORCPT + 99 others); Thu, 3 Dec 2020 08:30:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:48004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436563AbgLCNaX (ORCPT ); Thu, 3 Dec 2020 08:30:23 -0500 From: Sasha Levin Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Timo Witte , "Lee, Chun-Yi" , Hans de Goede , Sasha Levin , platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 34/39] platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE Date: Thu, 3 Dec 2020 08:28:28 -0500 Message-Id: <20201203132834.930999-34-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201203132834.930999-1-sashal@kernel.org> References: <20201203132834.930999-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Timo Witte [ Upstream commit 9e7a005ad56aa7d6ea5830c5ffcc60bf35de380b ] Got a dmesg message on my AMD Renoir based Acer laptop: "acer_wmi: Unknown key number - 0x84" when toggling keyboard background light Signed-off-by: Timo Witte Reviewed-by: "Lee, Chun-Yi" Link: https://lore.kernel.org/r/20200804001423.36778-1-timo.witte@gmail.com Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/acer-wmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 49f4b73be513f..5592a929b5935 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -111,6 +111,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { {KE_KEY, 0x64, {KEY_SWITCHVIDEOMODE} }, /* Display Switch */ {KE_IGNORE, 0x81, {KEY_SLEEP} }, {KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} }, /* Touch Pad Toggle */ + {KE_IGNORE, 0x84, {KEY_KBDILLUMTOGGLE} }, /* Automatic Keyboard background light toggle */ {KE_KEY, KEY_TOUCHPAD_ON, {KEY_TOUCHPAD_ON} }, {KE_KEY, KEY_TOUCHPAD_OFF, {KEY_TOUCHPAD_OFF} }, {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} }, -- 2.27.0