HID: microsoft: Add support for Surface Pro 4 Type Cover
PATCH 1/1 HID: microsoft: Add support for Surface Pro 4 Type Cover
Adding support for device 0x07e8 (SP4 Type Cover)
--- drivers/hid/hid-core.c | 2 ++ drivers/hid/hid-ids.h | 1 + drivers/hid/hid-microsoft.c | 2 ++ drivers/hid/usbhid/hid-quirks.c | 1 + 4 files changed, 6 insertions(+)
drivers/hid/hid-core.c +2 -0
@@ -727,6 +727,7 @@ static void hid_scan_collection(struct hid_parser *parser, unsigned type) (hid->product ==USB_DEVICE_ID_MS_TYPE_COVER_PRO_3 || hid->product ==USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP || hid->product ==USB_DEVICE_ID_MS_TYPE_COVER_3 || + hid->product ==USB_DEVICE_ID_MS_TYPE_COVER_PRO_4 || hid->product ==USB_DEVICE_ID_MS_POWER_COVER ) && hid->group == HID_GROUP_MULTITOUCH) hid->group = HID_GROUP_GENERIC;
@@ -1930,6 +1931,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_3) }, { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP) }, { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_3) }, + { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_4) }, { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_POWER_COVER) }, { HID_USB_DEVICE(USB_VENDOR_ID_MONTEREY, USB_DEVICE_ID_GENIUS_KB29E) }, { HID_USB_DEVICE(USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GT683R_LED_PANEL) },
drivers/hid/hid-ids.h +1 -0
@@ -681,6 +681,7 @@#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_3 0x07dc#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP 0x07dd#define USB_DEVICE_ID_MS_TYPE_COVER_3 0x07de +#define USB_DEVICE_ID_MS_TYPE_COVER_PRO_4 0x07e8#define USB_DEVICE_ID_MS_POWER_COVER 0x07da#define USB_VENDOR_ID_MOJO 0x8282
drivers/hid/hid-microsoft.c +2 -0
@@ -282,6 +282,8 @@ static const struct hid_device_id ms_devices[] = { .driver_data = MS_HIDINPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_3), .driver_data = MS_HIDINPUT }, + { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_PRO_4), + .driver_data = MS_HIDINPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_POWER_COVER), .driver_data = MS_HIDINPUT },
drivers/hid/usbhid/hid-quirks.c +1 -0
@@ -93,6 +93,7 @@ static const struct hid_blacklist { { 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_JP, 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_4, 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 },
Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Jiri Kosina
maintainerQuoted 3 lines · savoca
Adding support for device
0x07e8(SP4 Type Cover)Signed-off-by savoca <[email protected]>
Thanks for the patch.
The authorship and signoffs should same real names though. Could you please resend with that fixed?
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 11 lines · Jiri Kosina
Quoted 3 lines · savoca
Adding support for device
0x07e8(SP4 Type Cover)Signed-off-by savoca <[email protected]>Thanks for the patch.
The authorship and signoffs should same real names though. Could you please resend with that fixed?
Have you guys noticed the patch [1] to support Surface Book along with Surface Pro 3?
[1] https://github.com/neoreeps/surface-pro-3/blob/master/wily_surface.patch
Signature · 2 lines
With Best Regards, Andy Shevchenko
Summon author, Kenny, of the mentioned patch.
Quoted 21 lines · Andy Shevchenko
Quoted 11 lines · Jiri Kosina
Quoted 3 lines · savoca
Adding support for device
0x07e8(SP4 Type Cover)Signed-off-by savoca <[email protected]>Thanks for the patch.
The authorship and signoffs should same real names though. Could you please resend with that fixed?
Have you guys noticed the patch [1] to support Surface Book along with Surface Pro 3?
[1] https://github.com/neoreeps/surface-pro-3/blob/master/wily_surface.patch
--
With Best Regards,
Andy Shevchenko
Signature · 2 lines
With Best Regards, Andy Shevchenko
A message that is not in the archive (sent off-list or not yet received): CAJ+BiKoZruvQQFQG0sJgzOM-uFbWwNYrW8R1+MDjiv+Rxe1C2Q@mail.gmail.com
Quoted 1 line · Kenny Speer
Hi All, what information would you like?
Just found many patches are flying around to support MS Surface 3 / Pro 3 / Pro 4 / Book.
https://groups.google.com/forum/?hl=en#!topic/linux-surface/VlE9JGvxEyg
I'm actually interested in Book support. So, I think someone has to sort this out and prepare series based on what is found.
Quoted 45 lines
BTW, here is the same patch for the 4.3rc7 kernel which already contains the surface button driver.
https://github.com/neoreeps/surface-pro-3/blob/master/4.3_surface.patch
~kenny
Quoted 33 lines · Andy Shevchenko
Summon author, Kenny, of the mentioned patch.
Quoted 16 lines · Andy Shevchenko
Quoted 11 lines · Jiri Kosina
Quoted 3 lines · savoca
Adding support for device
0x07e8(SP4 Type Cover)Signed-off-by savoca <[email protected]>Thanks for the patch.
The authorship and signoffs should same real names though. Could you please resend with that fixed?
Have you guys noticed the patch [1] to support Surface Book along with Surface Pro 3?
Quoted 6 lines
[1]
https://github.com/neoreeps/surface-pro-3/blob/master/wily_surface.patch--
With Best Regards,
Andy Shevchenko--
With Best Regards,
Andy Shevchenko
Signature · 2 lines
With Best Regards, Andy Shevchenko
Jiri Kosina
maintainerQuoted 4 lines · Andy Shevchenko
Quoted 4 lines
Quoted 3 lines
Adding support for device
0x07e8(SP4 Type Cover)Signed-off-by savoca <[email protected]>
Quoted 8 lines
Quoted 5 lines
Thanks for the patch.
The authorship and signoffs should same real names though. Could you please resend with that fixed?
Have you guys noticed the patch [1] to support Surface Book along with Surface Pro 3?
Not really. A quick scan through my mailbox tells me that it has actually never submitted to me for inclusion into the kernel.
Signature · 2 lines
Jiri Kosina SUSE Labs