Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2020 20:18:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 248926] Logitech HD Pro Webcam C920 USB_ERR_TIMEOUT
Message-ID:  <bug-248926-19105-NRRbppzviw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248926-19105@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248926

--- Comment #12 from Hans Petter Selasky <hselasky@FreeBSD.org> ---
Can you try this patch:

Index: sys/dev/usb/usb_request.c
===================================================================
--- sys/dev/usb/usb_request.c   (revision 364423)
+++ sys/dev/usb/usb_request.c   (working copy)
@@ -1010,7 +1010,7 @@
                USETW(req.wLength, min_len);

                err = usbd_do_request_flags(udev, mtx, &req,
-                   desc, 0, NULL, 500 /* ms */);
+                   desc, 0, NULL, 1000 /* ms */);

                if (err != 0 && err != USB_ERR_TIMEOUT &&
                    min_len != max_len) {
@@ -1021,7 +1021,7 @@
                        USETW(req.wLength, max_len);

                        err = usbd_do_request_flags(udev, mtx, &req,
-                           desc, USB_SHORT_XFER_OK, NULL, 500 /* ms */);
+                           desc, USB_SHORT_XFER_OK, NULL, 1000 /* ms */);

                        if (err == 0) {
                                /* verify length */


I think the problem is the device is responding a bit too slow!

--HPS

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248926-19105-NRRbppzviw>