Comment 43 for bug 1887190

Revision history for this message
Coiby Xu (coiby) wrote :

Thank you for testing the patch!

I'm sory I forgot the fact Lenovo ships different kinds of touchpads for the same laptop model and neglected this bug report is for MSFT0001:00 04F3:3140. Yours must also this touchpad device whose vendor is Elan (04F3).

I assume it should be also handled by hid_rmi. I've posted the change to https://github.com/coiby/linux/commit/53d8f9c8bade43b209831912d93ac941ca2c59ab. Can you confirm if it works?

diff --git a/drivers/hid/hid-rmi.c b/drivers/hid/hid-rmi.c
index 59a7ae712319..c9d4b7fc7512 100644
--- a/drivers/hid/hid-rmi.c
+++ b/drivers/hid/hid-rmi.c
@@ -759,6 +759,7 @@ static const struct hid_device_id rmi_id[] = {
        { HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_X1_COVER) },
        { HID_USB_DEVICE(USB_VENDOR_ID_PRIMAX, USB_DEVICE_ID_PRIMAX_REZEL) },
        { HID_I2C_DEVICE(I2C_VENDOR_ID_SYNAPTICS, 0x7f28) },
+ { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x3140) },
        { HID_USB_DEVICE(USB_VENDOR_ID_SYNAPTICS, USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5),
                .driver_data = RMI_DEVICE_OUTPUT_SET_REPORT },
        { HID_DEVICE(HID_BUS_ANY, HID_GROUP_RMI, HID_ANY_ID, HID_ANY_ID) },