PERFORCE change 130748 for review

Hans Petter Selasky hselasky at FreeBSD.org
Wed Dec 12 15:04:48 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=130748

Change 130748 by hselasky at 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));
 }
 
 /*------------------------------------------------------------------------*


More information about the p4-projects mailing list