Bug#675093: linux-image-3.2.0-2-amd64: USB "timeout initializing reports" with Eaton UPS
On Thu, 31 May 2012, Manu Benoît wrote:
> Alright, got the log you requested.
Ok, thanks. I will have to think about this whole thing a little bit more,
but as a first step, could you please try with the patch below to see if
it makes any difference and makes the device behave correctly? Thanks.
NOT-Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
drivers/hid/usbhid/hid-core.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 482f936..4da252d 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -367,6 +367,9 @@ static int hid_submit_ctrl(struct hid_device *hid)
} else {
int maxpacket, padlen;
+ if (hid->quirks & HID_QUIRK_NOGET)
+ return;
+
usbhid->urbctrl->pipe = usb_rcvctrlpipe(hid_to_usb_dev(hid), 0);
maxpacket = usb_maxpacket(hid_to_usb_dev(hid),
usbhid->urbctrl->pipe, 0);
--
Jiri Kosina
SUSE Labs
Reply to: