|
@@ -711,6 +711,9 @@ static int usbhid_parse(struct hid_device *hid)
|
|
quirks = usbhid_lookup_quirk(le16_to_cpu(dev->descriptor.idVendor),
|
|
quirks = usbhid_lookup_quirk(le16_to_cpu(dev->descriptor.idVendor),
|
|
le16_to_cpu(dev->descriptor.idProduct));
|
|
le16_to_cpu(dev->descriptor.idProduct));
|
|
|
|
|
|
|
|
+ if (quirks & HID_QUIRK_IGNORE)
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
/* Many keyboards and mice don't like to be polled for reports,
|
|
/* Many keyboards and mice don't like to be polled for reports,
|
|
* so we will always set the HID_QUIRK_NOGET flag for them. */
|
|
* so we will always set the HID_QUIRK_NOGET flag for them. */
|
|
if (interface->desc.bInterfaceSubClass == USB_INTERFACE_SUBCLASS_BOOT) {
|
|
if (interface->desc.bInterfaceSubClass == USB_INTERFACE_SUBCLASS_BOOT) {
|