Date: Wed, 14 Oct 2020 06:25:55 +0000 (UTC) From: Ganael LAPLANCHE <martymac@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r366693 - releng/12.2/sys/dev/usb Message-ID: <202010140625.09E6PteV099978@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: martymac (ports committer) Date: Wed Oct 14 06:25:55 2020 New Revision: 366693 URL: https://svnweb.freebsd.org/changeset/base/366693 Log: MFS r365964: Allow slow USB devices to be given more time to return their USB descriptors, like Logitech HD Pro Webcam C920. PR: 248926 Approved by: re (gjb), hselasky Modified: releng/12.2/sys/dev/usb/usb_request.c Directory Properties: releng/12.2/ (props changed) Modified: releng/12.2/sys/dev/usb/usb_request.c ============================================================================== --- releng/12.2/sys/dev/usb/usb_request.c Wed Oct 14 02:23:49 2020 (r366692) +++ releng/12.2/sys/dev/usb/usb_request.c Wed Oct 14 06:25:55 2020 (r366693) @@ -721,7 +721,8 @@ done: case USB_ERR_CANCELLED: break; default: - DPRINTF("I/O error - waiting a bit for TT cleanup\n"); + DPRINTF("error=%s - waiting a bit for TT cleanup\n", + usbd_errstr(err)); usb_pause_mtx(mtx, hz / 16); break; } @@ -1010,7 +1011,7 @@ usbd_req_get_desc(struct usb_device *udev, 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 +1022,7 @@ usbd_req_get_desc(struct usb_device *udev, 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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010140625.09E6PteV099978>