Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2007 23:04:47 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 130748 for review
Message-ID:  <200712122304.lBCN4lRi083116@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130748

Change 130748 by hselasky@hselasky_laptop001 on 2007/12/12 23:04:40

	
	Faster recovery in case of failure.
	Setting the address should not take more than 1 second.
	Default timeout is 5 seconds.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_requests.c#13 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_requests.c#13 (text+ko) ====

@@ -430,7 +430,9 @@
 	USETW(req.wValue, addr);
 	USETW(req.wIndex, 0);
 	USETW(req.wLength, 0);
-	return (usbd_do_request(udev, mtx, &req, 0));
+
+	/* Setting the address should not take more than 1 second ! */
+	return (usbd_do_request_flags(udev, mtx, &req, NULL, 0, NULL, 1000));
 }
 
 /*------------------------------------------------------------------------*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712122304.lBCN4lRi083116>