PERFORCE change 105259 for review

Hans Petter Selasky hselasky at FreeBSD.org
Tue Aug 29 12:58:13 UTC 2006


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

Change 105259 by hselasky at hselasky_mini_itx on 2006/08/29 12:57:15

	Try to make "usbd_config_td_queue_command()" smarter by calling
	"command_func" before "p_config_copy".

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#14 edit

Differences ...

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

@@ -2561,6 +2561,15 @@
 	    }
 	}
 
+	/* first call to command function
+	 * (do this before calling the 
+	 *  config copy function, so that
+	 *  the immediate part of the command
+	 *  function gets a chance to change 
+	 *  the config before it is copied)
+	 */
+	(command_func)(ctd->p_softc, NULL, command_ref);
+
 	USBD_IF_DEQUEUE(&(ctd->cmd_free), m);
 
 	if (m == NULL) {
@@ -2586,11 +2595,6 @@
 	    ctd->flag_config_td_sleep = 0;
 	    wakeup(&(ctd->wakeup_config_td));
 	}
-
-	/* first call to command function */
-
-	(command_func)(ctd->p_softc, NULL, command_ref);
-
 	return;
 }
 


More information about the p4-projects mailing list