PERFORCE change 180528 for review

Hans Petter Selasky hselasky at FreeBSD.org
Tue Jul 6 10:45:31 UTC 2010


http://p4web.freebsd.org/@@180528?ac=10

Change 180528 by hselasky at hselasky_laptop001 on 2010/07/06 10:45:26

	
	USB CORE:
		- fix regression issue after last patch:
			Need to issue a new probe and
			attach after changing the configuration
			number during re-enumeration.
		- patch by: HPS @

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_hub.c#49 edit

Differences ...

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

@@ -245,7 +245,10 @@
 				err = usbd_req_re_enumerate(child, NULL);
 			if (err == 0)
 				err = usbd_set_config_index(child, 0);
-
+			if (err == 0) {
+				err = usb_probe_and_attach(child,
+				    USB_IFACE_INDEX_ANY);
+			}
 			child->re_enumerate_wait = 0;
 			err = 0;
 		}


More information about the p4-projects mailing list