Re: 10 seconds lag when connecting UPS device (usb_submit_urb(ctrl) failed: -1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 14 Aug 2012, Laurent Bigonville wrote:

> > But does the UPS work okay when you use the parameter?  If it does,
> > the quirk information can be added to a permanent table in the usbhid
> > driver.
> 
> Yes it seems to work, the userspace driver can communicate with the
> device (at least I can see the status of the UPS).

Okay.  Below is a patch to add a permanent blacklist entry for your 
UPS.  With this patch you shouldn't need to use the module parameter 
any more.  Please try it out and let me know if it works; if it does I 
will submit it for inclusion in the kernel.

Alan Stern



Index: usb-3.5/drivers/hid/usbhid/hid-quirks.c
===================================================================
--- usb-3.5.orig/drivers/hid/usbhid/hid-quirks.c
+++ usb-3.5/drivers/hid/usbhid/hid-quirks.c
@@ -70,6 +70,7 @@ static const struct hid_blacklist {
 	{ USB_VENDOR_ID_CH, USB_DEVICE_ID_CH_AXIS_295, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_DMI, USB_DEVICE_ID_DMI_ENC, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2700, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN, HID_QUIRK_NO_INIT_REPORTS },
 	{ USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN1, HID_QUIRK_NO_INIT_REPORTS },
 	{ USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN2, HID_QUIRK_NO_INIT_REPORTS },

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux