Received: by 10.213.65.68 with SMTP id h4csp2113270imn; Sun, 8 Apr 2018 20:03:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx48rKijky4ywfJVAf290dgkEL/qd7nZ/dWYiMd7n+CjAV8C1H/LBlKSpNIMmKxSScZL19d7C X-Received: by 10.98.118.130 with SMTP id r124mr27463024pfc.238.1523242994854; Sun, 08 Apr 2018 20:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523242994; cv=none; d=google.com; s=arc-20160816; b=tTgq+jGxxqNreVMhs7bsHZBK/dw0EvuTYb8XtCA4PGSq/f0wOvPGN1rKYmx3YUnVq5 3le3XBDluiL3uN5pk9+lA6aM4agXywT/HUi3OuZ1qbNIARdPDCJhAF8M/FSURb/yE0F3 onVPWsn80jveIK9EdAfS09ppIyYeVVkmIGzciekqmiFBX1eN/Gvhm9JBRBzGlscKkV1d KECnphMzDX2zAOy3UDoCRD7tZSeXkTI3i6/khSnVR3AViIsiEbmwvEg5KqLgJdZ9qB0M E4KAYrb3bKm0tEZV3RCX+unr/UyF06bLYJ5PsfgnxTYL32F21dLjiJzPOPf776SZOKGT nKXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=4FCefKtnL+FUFYdwJEyYt6YGiv0L3WwOKtHPwJhUBQY=; b=N8lt/IOiiKVeGFyUXtt3bpQiI9YNtDaKmAm3pV6wRqr/Rj8RyUaABC1GihvFRZwhDP vju9pSFJMRDwFg+BBMvaGK3JFH83SUJ+ZT8ombkgnz7aVis8ggGuuX60GTtE7jNcREG7 Usu/EbIGIrzUqyB2O3PzDSQCWPd2oApjb+b8ym3uqmWTW09KKX/b6IYY7T43V+gB0mXy IKtdRcn2XDl3euOfFbLZednrFmu+BGGan19XKFlFiWm/Uls1qrL8hdRL5NkGeCEzJvD7 uv3MAsYWNwuDL9HjwSVr1pLd/hnV5s2nFiOrAol1yC3UhOSiQXvoyUmTQ0oS2NZRh+FC XSKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=DWK+PeHH; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si10328192pgr.147.2018.04.08.20.02.38; Sun, 08 Apr 2018 20:03:14 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=DWK+PeHH; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753909AbeDIAS5 (ORCPT + 98 others); Sun, 8 Apr 2018 20:18:57 -0400 Received: from mail-by2nam01on0126.outbound.protection.outlook.com ([104.47.34.126]:59343 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753755AbeDIASp (ORCPT ); Sun, 8 Apr 2018 20:18:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4FCefKtnL+FUFYdwJEyYt6YGiv0L3WwOKtHPwJhUBQY=; b=DWK+PeHHz+1hVPbp9qZyveOQA8pts2ZKFi//lGs2oR9EMvlaMsmKbbIkh2WFYg7nfkGp9dSLdhu6YpaR/viNpo5NYc6k/y13BU1HEHX5u7ryk3wFvFAPNwVxOyPa3pi3CIgxZ8E1NSbmkRLC82VArd/XT8UhOLCtjUmPZriBvIY= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:18:39 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:18:39 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: David Herrmann , Matthew Thode , Andy Shevchenko , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 081/189] platform/x86: thinkpad_acpi: suppress warning about palm detection Thread-Topic: [PATCH AUTOSEL for 4.15 081/189] platform/x86: thinkpad_acpi: suppress warning about palm detection Thread-Index: AQHTz5gwALRi28Pg1k2JRc0YNC7DiQ== Date: Mon, 9 Apr 2018 00:17:49 +0000 Message-ID: <20180409001637.162453-81-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1128;7:5nApsP8JQKlHRC6t8vE6UnK5TWdiE135BgWkWaLdzgxGH8hnss+4aayDKWSKXUAnQ2Lc+0sjNM+NVdSYkCf+J+j3NfWjLVWEF0l4V1ESQLaSedx6o6YnVF6j290qcfYOscNmJtDEiYtPk4mPPVhobulrnZbXWHUVE9O28+7EFi3PsRoqk4FZ7GYOSrUaLSXWUU7jUF3iFwYptJ6uk2pB65jP0/gLL2whW3MbRAEkrYeY4MqFs3KqWdsGWtX8Yhca;20:wW+yd5ifUY9nx4sEXbZTz8BWG75Z4a/vIIiEKTAWbUrRk1Xxdcn1Zav1w8PdUCbybybapXOORo3hFotTv9/wb1DzOwPNG9BvIil17tNYINBvFtT8bi5QHjBHHQHje+SFMQBr4aEw2/GA3r6YNbo8Kr1mDw0tyedaKcnmF+9O8A4= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: e783f8f4-7599-4307-5e7f-08d59daf7164 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1128; x-ms-traffictypediagnostic: DM5PR2101MB1128: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1128;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1128; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(396003)(376002)(366004)(39380400002)(199004)(189003)(66066001)(86362001)(59450400001)(3660700001)(3280700002)(2900100001)(25786009)(36756003)(6506007)(76176011)(2906002)(6486002)(86612001)(99286004)(102836004)(1076002)(7736002)(97736004)(2616005)(446003)(486006)(11346002)(476003)(26005)(305945005)(39060400002)(6666003)(6512007)(4326008)(107886003)(478600001)(6436002)(5660300001)(10290500003)(5250100002)(22452003)(316002)(105586002)(186003)(8676002)(110136005)(54906003)(72206003)(53936002)(2501003)(68736007)(14454004)(6116002)(8936002)(3846002)(81156014)(10090500001)(106356001)(81166006)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1128;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: gK450bi43+b8NwbdRbWg855TJLDwyWNXItMJd5j2fvs8wlXdAJSuVRLMcpwaSDLVw5Uo4vdIK0YT9y8xYvGtFjG7nQR0kbhflRW/9rifiEP3ZGQmZgsiDtuRkL3ktfe3aBjp8ueV939UcA6yndJPYOJvzv3+fDJWQr+0aCP4l6LQmDGNMxGS0vdkQg8xiEJZWWZjoveTOfzOyQXD5GgWZh/CclFNFjCsbxp5lPl6DZphqHbdDPJtwf42Jh1AINQtWp2xx34gH0cI5rG0ribEW0ecexkLFV2/VmveMH/k7r7mNcpd4S3W2kNojqAQ3GyFa0xv+WCWMf7Wo0WxZkN03+XaG/SKp2+KJDApqlHMQkT5WcVZLvHeMdCeteMGHRaurqklV6GrkOrfotv/Q3jJ/ai+5OEEFcHsgpa7UKwTEJ4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: e783f8f4-7599-4307-5e7f-08d59daf7164 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:49.1328 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/platform/x86/thinkpad_acpi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/th= inkpad_acpi.c index 117be48ff4de..128f91af716e 100644 --- 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 =3D 0x6040, /* AC status changed */ =20 + /* Further user-interface events */ + TP_HKEY_EV_PALM_DETECTED =3D 0x60b0, /* palm hoveres keyboard */ + TP_HKEY_EV_PALM_UNDETECTED =3D 0x60b1, /* palm removed */ + /* Misc */ TP_HKEY_EV_RFKILL_CHANGED =3D 0x7000, /* rfkill switch changed */ }; @@ -4079,6 +4083,12 @@ static bool hotkey_notify_6xxx(const u32 hkey, *send_acpi_ev =3D false; break; =20 + 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 =3D false; --=20 2.15.1