Messages in this thread | | | Date | Mon, 3 Nov 2014 14:30:39 +0100 (CET) | From | Jiri Kosina <> | Subject | Re: [PATCH 1/1] x86: Surface Pro 3 Type Cover 3 |
| |
On Fri, 31 Oct 2014, Alan Wu wrote:
> From: alanwu <alan.c.wu@gmail.com> > > Surface Pro 3 Type Cover that works with Ubuntu (and possibly Arch) from this thread. Both trackpad and keyboard work after compiling my own kernel. > http://ubuntuforums.org/showthread.php?t=2231207&page=2&s=44910e0c56047e4f93dfd9fea58121ef > > Signed-off-by: alanwu <alan.c.wu@gmail.com>
Hi Alan,
thanks for the patch.
For driver binding to work reliably and correctly, you also need to add the device to hid_have_special_driver[] array in drivers/hid/hid-core.c.
Could you please fix that up and resend the patch?
> --- > drivers/hid/hid-ids.h | 1 + > drivers/hid/hid-microsoft.c | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h > index e23ab8b..15f32c2 100644 > --- a/drivers/hid/hid-ids.h > +++ b/drivers/hid/hid-ids.h > @@ -648,6 +648,7 @@ > #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 0x07dc > > #define USB_VENDOR_ID_MOJO 0x8282 > #define USB_DEVICE_ID_RETRO_ADAPTER 0x3201 > diff --git a/drivers/hid/hid-microsoft.c b/drivers/hid/hid-microsoft.c > index 8ba17a9..cacda43 100644 > --- a/drivers/hid/hid-microsoft.c > +++ b/drivers/hid/hid-microsoft.c > @@ -274,6 +274,8 @@ static const struct hid_device_id ms_devices[] = { > .driver_data = MS_NOGET }, > { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_COMFORT_MOUSE_4500), > .driver_data = MS_DUPLICATE_USAGES }, > + { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_TYPE_COVER_3), > + .driver_data = MS_HIDINPUT }, > > { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_PRESENTER_8K_BT), > .driver_data = MS_PRESENTER }, > -- > 2.1.0 >
-- Jiri Kosina SUSE Labs
| |