Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2006 12:58:11 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 105259 for review
Message-ID:  <200608291258.k7TCwBmM096427@repoman.freebsd.org>

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

Change 105259 by hselasky@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;
 }
 



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