aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-01-17 15:05:55 -0500
committerJiri Kosina <jkosina@suse.cz>2018-01-23 09:48:01 -0500
commitedfc3722cfef4217c7fe92b272cbe0288ba1ff57 (patch)
treeb0640e5769ce5c2a0716fd6953d792c8513e677c
parent332347d4c7a1353cc0aa9a3f0cd238d36ce0d932 (diff)
HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working
The Toshiba Click Mini uses an i2c attached keyboard/touchpad combo (single i2c_hid device for both) which has a vid:pid of 04F3:0401, which is also used by a bunch of Elan touchpads which are handled by the drivers/input/mouse/elan_i2c driver, but that driver deals with pure touchpads and does not work for a combo device such as the one on the Toshiba Click Mini. The combo on the Mini has an ACPI id of ELAN0800, which is not claimed by the elan_i2c driver, so check for that and if it is found do not ignore the device. This fixes the keyboard/touchpad combo on the Mini not working (although with the touchpad in mouse emulation mode). Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-quirks.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c
index 20e68a7ac79f..2e4b8c62067b 100644
--- a/drivers/hid/hid-quirks.c
+++ b/drivers/hid/hid-quirks.c
@@ -730,7 +730,6 @@ static const struct hid_device_id hid_ignore_list[] = {
730 { HID_USB_DEVICE(USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EARTHMATE) }, 730 { HID_USB_DEVICE(USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EARTHMATE) },
731 { HID_USB_DEVICE(USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EM_LT20) }, 731 { HID_USB_DEVICE(USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EM_LT20) },
732 { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) }, 732 { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) },
733 { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) },
734 { HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5) }, 733 { HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5) },
735 { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) }, 734 { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) },
736 { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) }, 735 { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) },
@@ -998,6 +997,17 @@ bool hid_ignore(struct hid_device *hdev)
998 strncmp(hdev->name, "www.masterkit.ru MA901", 22) == 0) 997 strncmp(hdev->name, "www.masterkit.ru MA901", 22) == 0)
999 return true; 998 return true;
1000 break; 999 break;
1000 case USB_VENDOR_ID_ELAN:
1001 /*
1002 * Many Elan devices have a product id of 0x0401 and are handled
1003 * by the elan_i2c input driver. But the ACPI HID ELAN0800 dev
1004 * is not (and cannot be) handled by that driver ->
1005 * Ignore all 0x0401 devs except for the ELAN0800 dev.
1006 */
1007 if (hdev->product == 0x0401 &&
1008 strncmp(hdev->name, "ELAN0800", 8) != 0)
1009 return true;
1010 break;
1001 } 1011 }
1002 1012
1003 if (hdev->type == HID_TYPE_USBMOUSE && 1013 if (hdev->type == HID_TYPE_USBMOUSE &&