[PATCH] USB: adds support for Novatek wireless mouse to usbhid

From: Benoit Touchette
Date: Wed Dec 12 2012 - 20:43:34 EST


This patch adds support for the Novatek wireless mouse (device id
0603:1602) to usbhid and fixes bug
https://bugzilla.kernel.org/show_bug.cgi?id=47031

Reported-by: Benoit Touchette <draekko.dev@xxxxxxxxx>
Signed-off-by: Benoit Touchette <draekko.dev@xxxxxxxxx>

---

--- linux-3.6.10/drivers/hid/hid-ids.h.orig 2012-12-10
14:13:27.000000000 -0500
+++ linux-3.6.10/drivers/hid/hid-ids.h 2012-12-12 20:06:41.000000000 -0500
@@ -833,4 +833,7 @@
#define USB_VENDOR_ID_PRIMAX 0x0461
#define USB_DEVICE_ID_PRIMAX_KEYBOARD 0x4e05

+#define USB_VENDOR_ID_NOVATEK 0x0603
+#define USB_DEVICE_ID_NOVATEK_MOUSE 0x1602
+
#endif
--- linux-3.6.10/drivers/hid/usbhid/hid-quirks.c.orig 2012-12-10
14:13:27.000000000 -0500
+++ linux-3.6.10/drivers/hid/usbhid/hid-quirks.c 2012-12-12
20:06:41.000000000 -0500
@@ -98,6 +98,8 @@ static const struct hid_blacklist {

{ USB_VENDOR_ID_PI_ENGINEERING,
USB_DEVICE_ID_PI_ENGINEERING_VEC_USB_FOOTPEDAL,
HID_QUIRK_HIDINPUT_FORCE },

+ { USB_VENDOR_ID_NOVATEK, USB_DEVICE_ID_NOVATEK_MOUSE,
HID_QUIRK_NO_INIT_REPORTS },
+
{ USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_MULTI_TOUCH,
HID_QUIRK_MULTI_INPUT },
{ USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_WIRELESS,
HID_QUIRK_MULTI_INPUT },
{ USB_VENDOR_ID_SIGMA_MICRO, USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD,
HID_QUIRK_NO_INIT_REPORTS },
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/