PERFORCE change 146795 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Aug 6 19:46:07 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=146795
Change 146795 by hselasky at hselasky_laptop001 on 2008/08/06 19:45:26
Bugfix. Doing the alternate setting
should not detach any devices in USB
Host Mode.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_device.c#18 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_device.c#18 (text+ko) ====
@@ -675,8 +675,9 @@
err = USB_ERR_INVAL;
goto done;
}
- usb2_detach_device(udev, iface_index, 1);
-
+ if (udev->flags.usb2_mode == USB_MODE_DEVICE) {
+ usb2_detach_device(udev, iface_index, 1);
+ }
err = usb2_fill_iface_data(udev, iface_index, alt_index);
if (err) {
goto done;
More information about the p4-projects
mailing list