Input: synaptics - Lenovo Thinkpad X1 Carbon G5 (2017) with Elantech trackpoints should use RMI.
Subsystems (2)
PATCH 1/1 Input: synaptics - Lenovo Thinkpad X1 Carbon G5 (2017) with Elantech trackpoints should use RMI.
From: Edvard Holst <[email protected]>
Lenovo use two different trackpoints in the fifth generation Thinkpad X1 Carbon. Both are accessible over SMBUS/RMI but the pnpIDs are missing. This patch is for the Elantech trackpoint specifically which also reports SMB version 3 so rmi_smbus needs to be updated in order to handle it.
For the record, I was not the first one to come up with this patch as it has been floating around the internet for a while now. However, I have spent significant time with testing and my efforts to find the original author of the patch have been unsuccessful.
Signed-off-by Edvard Holst <[email protected]>
--- drivers/input/mouse/synaptics.c | 1 + drivers/input/rmi4/rmi_smbus.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/input/mouse/synaptics.c +1 -0
@@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[] = {"LEN0046" ,/* X250 */ "LEN004a" ,/* W541 */ "LEN200f" ,/* T450s */ +"LEN0073" ,/* X1 Carbon G5 (Elantech) */ NULL };
drivers/input/rmi4/rmi_smbus.c +1 -1
@@ -322,7 +322,7 @@ static int rmi_smb_probe(struct i2c_client *client,rmi_dbg (RMI_DEBUG_XPORT , &client->dev,"Smbus version is %d" , smbus_version); -if (smbus_version !=2 ) { +if (smbus_version !=2 && smbus_version !=3 ) {dev_err (&client->dev,"Unrecognized SMB version %d\n" , smbus_version);return -ENODEV ;
Signature · 1 line
2.13.5