Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 2010 15:23:11 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 182031 for review
Message-ID:  <201008071523.o77FNBKk007288@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@182031?ac=10

Change 182031 by hselasky@hselasky_laptop001 on 2010/08/07 15:23:08

	USB core:
		- The XHCI will select the address and not the
		USB software stack. Give room for that.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_device.c#75 edit

Differences ...

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

@@ -1642,9 +1642,12 @@
 
 		err = usbd_req_set_address(udev, NULL, device_index);
 
-		/* This is the new USB device address from now on */
-
-		udev->address = device_index;
+		/*
+		 * This is the new USB device address from now on, if
+		 * the set address request didn't set it already.
+		 */
+		if (udev->address == USB_START_ADDR)
+			udev->address = device_index;
 
 		/*
 		 * We ignore any set-address errors, hence there are



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