[PATCH] HID: Ignore P5 Data Glove (2.4 and 2.5 patches)

From: Jason McMullan (jmcmullan@linuxcare.com)
Date: Thu Mar 20 2003 - 14:53:05 EST


  As requested, here are the 2.4 (latest BK tree) and 2.5 (latest bk
  tree) patches to ignore the non-HID Essential Reality Data Glove

  (again, user-space lib to access this device via /proc/bus/usb
   is available at http://www.evillabs.net/~jmcc/p5)

-------------- 2.4 patch --------------------
--- linux-2.4/drivers/usb/hid-core.c 2003-03-20 14:42:49.000000000 -0500
+++ linux-2.4/drivers/usb/hid-core.c.new 2003-03-20 14:46:40.000000000 -0500
@@ -1102,6 +1102,9 @@
 #define USB_VENDOR_ID_OKI 0x070a
 #define USB_VENDOR_ID_OKI_MULITI 0x0007
 
+#define USB_VENDOR_ID_ESSENTIAL_REALITY 0x0d7f
+#define USB_DEVICE_ID_ESSENTIAL_REALITY_P5 0x0100
+
 struct hid_blacklist {
         __u16 idVendor;
         __u16 idProduct;
@@ -1142,6 +1145,7 @@
          { USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK_ADU100 + 500, HID_QUIRK_IGNORE },
          { USB_VENDOR_ID_TANGTOP, USB_DEVICE_ID_TANGTOP_USBPS2, HID_QUIRK_NOGET },
         { USB_VENDOR_ID_OKI, USB_VENDOR_ID_OKI_MULITI, HID_QUIRK_NOGET },
+ { USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5, HID_QUIRK_IGNORE },
         { 0, 0 }
 };
 

---- end
----------- 2.5 patch -------------------
--- linux-2.5/drivers/usb/input/hid-core.c 2003-03-19 09:30:25.000000000 -0500
+++ linux-2.5/drivers/usb/input/hid-core.c.new 2003-03-20 14:48:42.000000000 -0500
@@ -1334,6 +1334,9 @@
 #define USB_VENDOR_ID_TANGTOP 0x0d3d
 #define USB_DEVICE_ID_TANGTOP_USBPS2 0x0001
 
+#define USB_VENDOR_ID_ESSENTIAL_REALITY 0x0d7f
+#define USB_DEVICE_ID_ESSENTIAL_REALITY_P5 0x0100
+
 struct hid_blacklist {
         __u16 idVendor;
         __u16 idProduct;
@@ -1377,6 +1380,7 @@
         { USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK_ADU100 + 400, HID_QUIRK_IGNORE },
         { USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK_ADU100 + 500, HID_QUIRK_IGNORE },
         { USB_VENDOR_ID_TANGTOP, USB_DEVICE_ID_TANGTOP_USBPS2, HID_QUIRK_NOGET },
+ { USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5, HID_QUIRK_IGNORE },
         { 0, 0 }
 };
 
---- end

-- 
Jason McMullan, Senior Linux Consultant, Linuxcare, Inc.
412.422.8077 tel, 412.656.3519 cell, 208.694.9206 fax
jmcmullan@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:32 EST