Bug#675093: linux-image-3.2.0-2-amd64: USB "timeout initializing reports" with Eaton UPS
On 31/05/12 09:52, Jiri Kosina wrote:
> Hmm, that's odd. This device has been on 'HID_QUIRK_NOGET' list for very
> long time already (even before 2.6.32). Could you please apply the patch
> below, modprobe hid module with 'debug=1' parameter, and send me the
> output?
>
> diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
> index 482f936..25ebf54 100644
> --- a/drivers/hid/usbhid/hid-core.c
> +++ b/drivers/hid/usbhid/hid-core.c
> @@ -397,6 +397,7 @@ static int hid_submit_ctrl(struct hid_device *hid)
> r = usb_submit_urb(usbhid->urbctrl, GFP_ATOMIC);
> if (r < 0) {
> hid_err(hid, "usb_submit_urb(ctrl) failed: %d\n", r);
> + dump_stack();
> return r;
> }
> usbhid->last_ctrl = jiffies;
>
This patch could not be applied to the Debian kernel source, somehow. I
have assumed the code I should modify is this:
if (usb_submit_urb(usbhid->urbctrl, GFP_ATOMIC)) {
usb_autopm_put_interface_async(usbhid->intf);
hid_err(hid, "usb_submit_urb(ctrl) failed\n");
return -1;
}
(line 382 of drivers/hid/usbhid/hid-core.c) instead of what the patch
originally modifies.
Kernel is being compiled at the moment. Sorry for taking so long, it's
been a while since I had to do that.
--
Manu Benoît
Reply to: