PERFORCE change 159377 for review

Hans Petter Selasky hselasky at FreeBSD.org
Wed Mar 18 06:54:56 PDT 2009


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

Change 159377 by hselasky at hselasky_laptop001 on 2009/03/18 13:54:54

	
	USB storage: Further remove dependancy towards Giant.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/storage/umass.c#6 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/storage/umass.c#6 (text+ko) ====

@@ -1583,7 +1583,7 @@
 	 * some devices need a delay after that the configuration value is
 	 * set to function properly:
 	 */
-	usb2_pause_mtx(&Giant, hz);
+	usb2_pause_mtx(NULL, hz);
 
 	/* register the SIM */
 	err = umass_cam_attach_sim(sc);
@@ -1642,7 +1642,7 @@
 	req.wIndex[0] = sc->sc_iface_no;
 	req.wIndex[1] = 0;
 	USETW(req.wLength, sizeof(status));
-	err = usb2_do_request(sc->sc_udev, &Giant, &req, &status);
+	err = usb2_do_request(sc->sc_udev, NULL, &req, &status);
 
 	DPRINTF(sc, UDMASS_GEN, "Shuttle init returned 0x%02x%02x\n",
 	    status[0], status[1]);
@@ -2161,7 +2161,7 @@
 	req.wIndex[1] = 0;
 	USETW(req.wLength, 1);
 
-	err = usb2_do_request(sc->sc_udev, &Giant, &req, &buf);
+	err = usb2_do_request(sc->sc_udev, NULL, &req, &buf);
 	if (err) {
 		buf = 0;
 


More information about the p4-projects mailing list