]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.16.14/input-synaptics-lenovo-thinkpad-x1-carbon-g5-2017-with-elantech-trackpoints-should-use-rmi.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 4.16.14 / input-synaptics-lenovo-thinkpad-x1-carbon-g5-2017-with-elantech-trackpoints-should-use-rmi.patch
CommitLineData
3344bf47
GKH
1From 15e2cffec3aa0d47a8d75ae80e1b136bfb5dff30 Mon Sep 17 00:00:00 2001
2From: Edvard Holst <edvard.holst@gmail.com>
3Date: Sat, 3 Feb 2018 11:46:15 -0800
4Subject: Input: synaptics - Lenovo Thinkpad X1 Carbon G5 (2017) with Elantech trackpoints should use RMI
5
6From: Edvard Holst <edvard.holst@gmail.com>
7
8commit 15e2cffec3aa0d47a8d75ae80e1b136bfb5dff30 upstream.
9
10Lenovo use two different trackpoints in the fifth generation Thinkpad X1
11Carbon. Both are accessible over SMBUS/RMI but the pnpIDs are missing.
12This patch is for the Elantech trackpoint specifically which also
13reports SMB version 3 so rmi_smbus needs to be updated in order to
14handle it.
15
16For the record, I was not the first one to come up with this patch as it
17has been floating around the internet for a while now. However, I have
18spent significant time with testing and my efforts to find the original
19author of the patch have been unsuccessful.
20
21Signed-off-by: Edvard Holst <edvard.holst@gmail.com>
22Cc: stable@vger.kernel.org
23Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
24Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25
26---
27 drivers/input/mouse/synaptics.c | 1 +
28 1 file changed, 1 insertion(+)
29
30--- a/drivers/input/mouse/synaptics.c
31+++ b/drivers/input/mouse/synaptics.c
32@@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[
33 "LEN0046", /* X250 */
34 "LEN004a", /* W541 */
35 "LEN0072", /* X1 Carbon Gen 5 (2017) - Elan/ALPS trackpoint */
36+ "LEN0073", /* X1 Carbon G5 (Elantech) */
37 "LEN200f", /* T450s */
38 NULL
39 };