PERFORCE change 130958 for review

Hans Petter Selasky hselasky at FreeBSD.org
Sat Dec 15 09:13:18 PST 2007


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

Change 130958 by hselasky at hselasky_laptop001 on 2007/12/15 17:12:47

	
	Make "usbd_std_root_transfer" like the other
	standard chain functions.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#71 edit

Differences ...

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

@@ -1201,8 +1201,8 @@
 	/* signal that we plan to do the callback */
 	xfer->usb_thread = td;
 
-	if (xfer->flags_int.control_xfr &&
-	    xfer->flags_int.control_hdr) {
+	if (xfer->flags_int.control_xfr) {
+	  if (xfer->flags_int.control_hdr) {
 
 		/* copy out the USB request */
 
@@ -1228,6 +1228,10 @@
 		if (std->err) {
 			goto done;
 		}
+	  } else {
+	      /* skip the first frame in this case */
+	      xfer->aframes = 1;
+	  }
 	}
 	std->err = 0;
 	std->state = USBD_STD_ROOT_TR_PRE_DATA;


More information about the p4-projects mailing list