2018-02-03 19:08:42 +00:00
|
|
|
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
|
2018-03-05 00:50:51 +00:00
|
|
|
index a0baa5b..3e03ced8 100644
|
2018-02-03 19:08:42 +00:00
|
|
|
--- a/drivers/hid/hid-ids.h
|
|
|
|
+++ b/drivers/hid/hid-ids.h
|
2018-03-05 00:50:51 +00:00
|
|
|
@@ -770,11 +770,22 @@
|
2018-02-03 19:08:42 +00:00
|
|
|
#define USB_DEVICE_ID_MS_DIGITAL_MEDIA_3KV1 0x0732
|
|
|
|
#define USB_DEVICE_ID_MS_DIGITAL_MEDIA_600 0x0750
|
|
|
|
#define USB_DEVICE_ID_MS_COMFORT_MOUSE_4500 0x076c
|
|
|
|
-#define USB_DEVICE_ID_MS_COMFORT_KEYBOARD 0x00e3
|
|
|
|
-#define USB_DEVICE_ID_MS_SURFACE_PRO_2 0x0799
|
|
|
|
-#define USB_DEVICE_ID_MS_TOUCH_COVER_2 0x07a7
|
|
|
|
-#define USB_DEVICE_ID_MS_TYPE_COVER_2 0x07a9
|
|
|
|
-#define USB_DEVICE_ID_MS_POWER_COVER 0x07da
|
|
|
|
+#define USB_DEVICE_ID_MS_COMFORT_KEYBOARD 0x00e3
|
|
|
|
+#define USB_DEVICE_ID_MS_SURFACE_PRO_2 0x0799
|
|
|
|
+#define USB_DEVICE_ID_MS_TOUCH_COVER_2 0x07a7
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_2 0x07a9
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_3 0x07de
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_3 0x07dc
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_1 0x07de
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_2 0x07e2
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP 0x07dd
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_4 0x07e8
|
|
|
|
+#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_4_1 0x07e4
|
|
|
|
+#define USB_DEVICE_ID_MS_SURFACE_BOOK 0x07cd
|
|
|
|
+#define USB_DEVICE_ID_MS_SURFACE_BOOK_2 0x0922
|
|
|
|
+#define USB_DEVICE_ID_MS_SURFACE_LAPTOP 0xf001
|
2018-03-05 00:50:51 +00:00
|
|
|
+#define HID_DEVICE_ID_MS_SURFACE_LAPTOP 0x0064
|
2018-02-03 19:08:42 +00:00
|
|
|
+#define USB_DEVICE_ID_MS_POWER_COVER 0x07da
|
|
|
|
|
|
|
|
#define USB_VENDOR_ID_MOJO 0x8282
|
|
|
|
#define USB_DEVICE_ID_RETRO_ADAPTER 0x3201
|
|
|
|
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
|
2018-03-05 00:50:51 +00:00
|
|
|
index 65ea23b..00ce3be 100644
|
2018-02-03 19:08:42 +00:00
|
|
|
--- a/drivers/hid/hid-multitouch.c
|
|
|
|
+++ b/drivers/hid/hid-multitouch.c
|
2018-03-05 00:50:51 +00:00
|
|
|
@@ -1638,6 +1638,58 @@ static const struct hid_device_id mt_devices[] = {
|
2018-02-03 19:08:42 +00:00
|
|
|
HID_USB_DEVICE(USB_VENDOR_ID_LG,
|
|
|
|
USB_DEVICE_ID_LG_MELFAS_MT) },
|
|
|
|
|
|
|
|
+ /* Microsoft Touch Cover */
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TOUCH_COVER_2) },
|
|
|
|
+
|
|
|
|
+ /* Microsoft Type Cover */
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_2) },
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_3) },
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_PRO_3) },
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_1) },
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_2) },
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP) },
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_PRO_4) },
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_TYPE_COVER_PRO_4_1) },
|
|
|
|
+
|
|
|
|
+ /* Microsoft Surface Book */
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_SURFACE_BOOK) },
|
|
|
|
+
|
|
|
|
+ /* Microsoft Surface Book 2 */
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_SURFACE_BOOK_2) },
|
|
|
|
+
|
2018-03-05 00:50:51 +00:00
|
|
|
+ /* Microsoft Surface Laptop */
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ HID_DEVICE(BUS_I2C, HID_GROUP_ANY,
|
|
|
|
+ USB_DEVICE_ID_MS_SURFACE_LAPTOP,
|
|
|
|
+ HID_DEVICE_ID_MS_SURFACE_LAPTOP) },
|
|
|
|
+
|
2018-02-03 19:08:42 +00:00
|
|
|
+ /* Microsoft Power Cover */
|
|
|
|
+ { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
|
|
|
|
+ MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
|
|
|
|
+ USB_DEVICE_ID_MS_POWER_COVER) },
|
|
|
|
+
|
|
|
|
/* MosArt panels */
|
|
|
|
{ .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
|
|
|
|
MT_USB_DEVICE(USB_VENDOR_ID_ASUS,
|
|
|
|
diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c
|
|
|
|
index 331f7f3..6ff429f 100644
|
|
|
|
--- a/drivers/hid/usbhid/hid-quirks.c
|
|
|
|
+++ b/drivers/hid/usbhid/hid-quirks.c
|
|
|
|
@@ -108,8 +108,18 @@ static const struct hid_blacklist {
|
|
|
|
{ USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOUSE_C06A, HID_QUIRK_ALWAYS_POLL },
|
|
|
|
{ USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS, HID_QUIRK_NOGET },
|
|
|
|
{ USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_SURFACE_PRO_2, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
- { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_2, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
{ USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TOUCH_COVER_2, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_2, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_3, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_3, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_1, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_2, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_4, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_4_1, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_SURFACE_BOOK, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_SURFACE_BOOK_2, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
+ { USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_SURFACE_LAPTOP, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
{ USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_POWER_COVER, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
{ USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GT683R_LED_PANEL, HID_QUIRK_NO_INIT_REPORTS },
|
|
|
|
{ USB_VENDOR_ID_NEXIO, USB_DEVICE_ID_NEXIO_MULTITOUCH_PTI0750, HID_QUIRK_NO_INIT_REPORTS },
|