[PATCH] USB-HID: blacklist update

From: cr7
Date: Thu Jun 24 2004 - 05:43:01 EST


Hello,

sorry for resending this patch again.
Is there any reason, why shouldn't be applied ?
Did I miss some answers ?

The old message below:

this is a simple patch of USB's hid-core.c to add Codemercs' IOWarrior 24 and
IOWarrior 40 to the blacklist as they're no "real" HID devices.
It should be used via Codemercs' driver or via libusb.

The datasheet for IOwarrior can be found here:
http://www.codemercs.com/Downloads/IOWarriorDatasheet.pdf

Regards,
Carsten


Patch against 2.6.7:

--- /drivers/usb/input/hid-core.c-orig  2004-04-04 05:37:23.000000000 +0200
+++ /drivers/usb/input/hid-core.c       2004-05-11 13:50:11.877974264 +0200
@@ -1412,6 +1412,11 @@
 #define USB_DEVICE_ID_1_PHIDGETSERVO_20        0x8101
 #define USB_DEVICE_ID_4_PHIDGETSERVO_20        0x8104
 
+#define USB_VENDOR_ID_CODEMERCS         0x07c0
+#define USB_DEVICE_ID_CODEMERCS_IOW40   0x1500
+#define USB_DEVICE_ID_CODEMERCS_IOW24   0x1501
+
+
 static struct hid_blacklist {
        __u16 idVendor;
        __u16 idProduct;
@@ -1479,6 +1484,9 @@
        { USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD,
HID_QUIRK_BADPAD },
        { USB_VENDOR_ID_TOPMAX, USB_DEVICE_ID_TOPMAX_COBRAPAD,
HID_QUIRK_BADPAD },
 
+       { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW40,
HID_QUIRK_IGNORE },
+       { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW24,
HID_QUIRK_IGNORE },
+
        { 0, 0 }
 };
 
-
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/