Received: by 10.192.165.148 with SMTP id m20csp564267imm; Wed, 25 Apr 2018 04:20:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx49lna2ALmVwStQe7qasGJVLa4TmJ0Y5elsddUYZMuVEfpdDvbPdp0ls+l7LmigPIdm5+enb X-Received: by 2002:a17:902:31a4:: with SMTP id x33-v6mr28974549plb.355.1524655247023; Wed, 25 Apr 2018 04:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524655246; cv=none; d=google.com; s=arc-20160816; b=VJDc5/p8h/j/zs5AAzbsNn3PtATPY+A6kzwAn6CIA7GPafIJnGh40fbHipG7d8NhGS SDuXJMUR61xgHftrgnAjWvTJF1MTwodL4nfeP2LHwji6MrY/1wMoiaL3MjTi8ckJ95ov 9nCwikfeKbQCLn6TY11143pdUF7j+LZ3/X257lQ+RV7yVYwngzGip7h54Hv9BrjV0OcU iSeHsrL7Huj/MDlzpzasWINIYXmdI/cNg6FSrCZgOT86+hgViVAxplqfAYgL3fWxrY44 tB1LgzXh5amD99IOTITU3OX0qM2RQ5d5TRcV9BJ2K85ow+yj0HHVV4mzCcon2Atw9K2Q wgaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=JH8h/gSxquHkvEHxyCisI+dyNbztn8LWy9X5u2cbmeU=; b=C7vJdds8Umbz4s/ldvistYUfE8oXzEQf4Lw7u9OgT82z45E3M0XGSidka7S8+9Cn8T 4WA9poHDLMx9XqzzVnSVoCa+bmV18u9bWpyFcvGMV4xC8siK3limawsIIkmSi1KplMNH bbbXPCnry0cq7nlE7kHJJgn6x+RXiBqzWhvNSpUPu6gbxhOGK2wCgXupDD+J/SAhUm8t To7PXWZPfdDFS6prLlYDsR7HWG/OrdA7Z/mnw/VYhpW6JT+wBwYa69o++Jb5j1pcoaqE CFmwIk5PAKmXuppcdsblTbOYwrQrIMYYszfkW09bvVqwfAmA9ldo/NKBtr+MmqvoEvrf cBCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7si2834585pfe.214.2018.04.25.04.20.32; Wed, 25 Apr 2018 04:20:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753800AbeDYKkW (ORCPT + 99 others); Wed, 25 Apr 2018 06:40:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52070 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752952AbeDYKkQ (ORCPT ); Wed, 25 Apr 2018 06:40:16 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 76E3936; Wed, 25 Apr 2018 10:40:15 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthew Thode , David Herrmann , Henrique de Moraes Holschuh , Andy Shevchenko , Sasha Levin Subject: [PATCH 4.14 080/183] platform/x86: thinkpad_acpi: suppress warning about palm detection Date: Wed, 25 Apr 2018 12:35:00 +0200 Message-Id: <20180425103245.718504139@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Herrmann [ Upstream commit 587d8628fb71c3bfae29fb2bbe84c1478c59bac8 ] This patch prevents the thinkpad_acpi driver from warning about 2 event codes returned for keyboard palm-detection. No behavioral changes, other than suppressing the warning in the kernel log. The events are still forwarded via acpi-netlink channels. We could, optionally, decide to forward the event through a input-switch on the tpacpi input device. However, so far no suitable input-code exists, and no similar drivers report such events. Hence, leave it an acpi event for now. Note that the event-codes are named based on empirical studies. On the ThinkPad X1 5th Gen the sensor can be found underneath the arrow key. Cc: Matthew Thode Signed-off-by: David Herrmann Acked-by: Henrique de Moraes Holschuh Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/thinkpad_acpi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -214,6 +214,10 @@ enum tpacpi_hkey_event_t { /* AC-related events */ TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */ + /* Further user-interface events */ + TP_HKEY_EV_PALM_DETECTED = 0x60b0, /* palm hoveres keyboard */ + TP_HKEY_EV_PALM_UNDETECTED = 0x60b1, /* palm removed */ + /* Misc */ TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ }; @@ -3973,6 +3977,12 @@ static bool hotkey_notify_6xxx(const u32 *send_acpi_ev = false; break; + case TP_HKEY_EV_PALM_DETECTED: + case TP_HKEY_EV_PALM_UNDETECTED: + /* palm detected hovering the keyboard, forward to user-space + * via netlink for consumption */ + return true; + default: pr_warn("unknown possible thermal alarm or keyboard event received\n"); known = false;