Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2009 13:54:55 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 159377 for review
Message-ID:  <200903181354.n2IDsts0064655@repoman.freebsd.org>

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

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



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