Skip to contentSkip to conversation

HID: microsoft: Add support for Surface Pro 4 Type Cover

PATCH In review savoca 3 participants 6 messages Oct 27, 2015 – Oct 30, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

savoca

author
#0 lore raw

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
index 70a11ac..d54dde5 100644
@@ -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
index f769208..cebeb0a 100644
@@ -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
index 9aa3515..b663abf 100644
@@ -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
index 1dff8f0..954aedd 100644
@@ -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
maintainer
#1 lore raw
Quoted 3 lines · savoca

Adding support for device 0x07e8 (SP4 Type Cover)

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
#2 lore raw
Quoted 11 lines · Jiri Kosina
Quoted 3 lines · savoca

Adding support for device 0x07e8 (SP4 Type Cover)

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
#3 lore raw

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)

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
#5 lore raw
In reply to a message not in the archive
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)

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
maintainer
#6 lore raw
In reply to Andy Shevchenko
Quoted 4 lines · Andy Shevchenko
Quoted 4 lines
Quoted 3 lines

Adding support for device 0x07e8 (SP4 Type Cover)

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.

Quoted 1 line

[1] https://github.com/neoreeps/surface-pro-3/blob/master/wily_surface.patch

Signature · 2 lines
Jiri Kosina
SUSE Labs