Received: by 10.213.65.68 with SMTP id h4csp2124109imn; Sun, 8 Apr 2018 20:18:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/K1Z/PPpx/Kkk/zzpMh6oXYNp2HaDO7R06rj4eKvQLBSCu7wsg2LtWdfQMr31Re3lqpT1L X-Received: by 10.98.236.4 with SMTP id k4mr27471748pfh.240.1523243886948; Sun, 08 Apr 2018 20:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243886; cv=none; d=google.com; s=arc-20160816; b=HnqkIHoAJYTKz8XV4oIQ0l0PYY7lV6/UrpTRwXZTSwR7JrZHAecZT1D30ZYiTvFex5 eMZuCAYAnYmawV8yd5m1LlQx07kSHCXT7lTQuuc9Wp6fuhTTFOka1mws1EnYTjWccQ/x aQMH2nCRCdAN4wDsgcoLGFvR55Rlooq0nPFbYQcstxltF2wiDnkQ7C3SqkoDrHNwpnON 3vARAANpmZ7Ok9siAwvHfRWulqFLmA8UFZbBin8oLYe9Oj0lP5+Emt1huEJIybYUp5XO SSTOr1+qfR6o8q611sdKqHNHc0LCM0BRO5qycV+PEsHq/35xGwSQe9KxI6kUedPJ03De pO8Q== 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=HZQ20IDZwtOQINDJAY7ntPtMr3vyQYCmp0OXea68EZk=; b=or/kBuWADjsJlU71K2inH9iNh9Rl+CXFuVZAcIxuflMnVsQ5I2D0+lw7sO92sA6zGX kzZxppJynL6u8pmESkqBuMLFktue+VKEBftvYXmla8iRe1L85wLA/kyIoP4qiPHbb9gG 4QjljIQL85qM+TSntmRGhOzKO2iL2cDDxocknoMbYb2oJ3ZFj2Oukf1wI3VeOg5lHx/+ 3NCYwy+0PCCEDZV893rDLrA7UXdoN76KkMkfOHT9G+sWwsUH8Wqa4IObZsYcRtpNampL UhHe6pzQwgK0WnFvZu/HzAjPfkZ7k07cQpmk5hqpcfZiCvQF89TEVmm//vWm8HNUdYjV jvqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=nDRzw2kf; 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 z2si4966861pgo.567.2018.04.08.20.17.29; Sun, 08 Apr 2018 20:18:06 -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=nDRzw2kf; 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 S1752653AbeDIDOy (ORCPT + 99 others); Sun, 8 Apr 2018 23:14:54 -0400 Received: from mail-by2nam03on0115.outbound.protection.outlook.com ([104.47.42.115]:29467 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754926AbeDIAXs (ORCPT ); Sun, 8 Apr 2018 20:23:48 -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=HZQ20IDZwtOQINDJAY7ntPtMr3vyQYCmp0OXea68EZk=; b=nDRzw2kfcePLBgdTT+hYIB6PK4la2kxWSzK7rpN6FOOPxKKRMI7sy+NWsAv+BUGzLttqymDnY5qiKDbtBdRiTw8eJOavLttbsJY4N/DoeWdaWk0WCqV1DOFqOlEAqrKgygB1JPOiIZqQO0HTDy6SsORw8q6ybZHwhOS6PwY6VZw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1080.namprd21.prod.outlook.com (52.132.130.14) 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:23:44 +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:23:44 +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.14 068/161] platform/x86: thinkpad_acpi: suppress warning about palm detection Thread-Topic: [PATCH AUTOSEL for 4.14 068/161] platform/x86: thinkpad_acpi: suppress warning about palm detection Thread-Index: AQHTz5iXDQjGw0x6xkKInlyV7zjZVw== Date: Mon, 9 Apr 2018 00:20:41 +0000 Message-ID: <20180409001936.162706-68-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB1080;7:/iVow9sXxu0xjeC0NLvrn0kOFQS9QH5TxpKuPUh9l7TRZSJydhyx9GN/MhFHICH8lGfLOKy+nPtqwBrXRoK3BfLcl/sdEbgf1v+ZNN18QUy0RIrKqjq9WdylP54EeQHWsCWgN6f6VtKtiEXaZ9pE3eDWB5KPKMlxJGVSPeq7m0IwWR509nwrVs7ZaKRHkip2ei4/FZiJZJKQd4D1r7nlLbaYndGzqJo5Os8FCCgP92N7NDDDhbSYgpWWugM+ImKJ;20:NgOgoIwmf9PtMARyqT2JbegPMHUzt4nRc9durjq7GuY3cbeFLTtpszHBjItN06iYlxWw8KFN2Y7/eG2quao+EyzWOaAlXcuQxItCfjgnpCWApev4xItgG9i//jWXU/1DxlKnBACjzxRVYPPGuQf9qHrpsg9Y1Iuy4l9ZDXhIpks= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: d34bf78b-3cfc-4501-fde4-08d59db0278e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1080; x-ms-traffictypediagnostic: DM5PR2101MB1080: 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)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1080;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1080; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(396003)(39380400002)(366004)(39860400002)(199004)(189003)(2501003)(5250100002)(8936002)(10090500001)(5660300001)(3660700001)(446003)(107886003)(14454004)(36756003)(6436002)(39060400002)(476003)(3280700002)(2616005)(11346002)(4326008)(6666003)(53936002)(6512007)(22452003)(305945005)(10290500003)(316002)(102836004)(2906002)(6116002)(66066001)(6506007)(3846002)(7736002)(486006)(54906003)(110136005)(186003)(72206003)(26005)(1076002)(105586002)(2900100001)(6486002)(97736004)(478600001)(81156014)(81166006)(86612001)(8676002)(106356001)(99286004)(86362001)(76176011)(59450400001)(68736007)(25786009)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1080;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: wHTwV1k8gvx24tH1DlMEM/WGy94V6Yf5G4kZ4BHBkZKoP90xbi90/jSx9m0nWbz0uuK8mp4DJeJ6Tx7we1MgIpX07POiQdwlJHgYnZ7Lu4CC0bmk/NqDppDF4M85o/8ZiVXpzkvj14j8pyKhDurTAv1zx+9fhyGQj+obsojqG8hJqyTkjfBwWhSY3g6VjlsSqasLBRhEbY0/tcQ3kWQIgAjr8RjL8zMx8GeGzvTzdta6iNBx/6BWPUUddzz8pu6zjck85D5Oq7XVWJLMzi8JqYKRaJNzST5FSlXinaT8j+sz4z0Ei15ESXpwkPb6jPk71yPkiHeyQY0rdJsklMM3U0tjMvpWiJy5lC7S2eUvTpv7Ebmfg0hvOa53e6IYv5wlzbilJEILO3zf9/KYVaB5FWbk+5nBTy9no2Ld7eE3oNc= 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: d34bf78b-3cfc-4501-fde4-08d59db0278e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:41.4879 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1080 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 2242d6035d9e..c407d52ef7cf 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 */ }; @@ -3973,6 +3977,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