PERFORCE change 131462 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Dec 23 01:14:25 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=131462
Change 131462 by hselasky at hselasky_laptop001 on 2007/12/23 09:13:23
Use the "cdce" USB template as default in
USB device side mode until further.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#78 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#78 (text+ko) ====
@@ -1670,7 +1670,19 @@
}
/* allow device time to set new address */
usbd_delay_ms(udev, USB_SET_ADDRESS_SETTLE);
+ } else {
+
+ /*
+ * TODO: Make some kind of command that lets the user choose
+ * the USB template.
+ */
+ err = usbd_temp_setup(udev, &usb_template_cdce);
+ if (err) {
+ PRINTFN(-1, ("setting up USB template failed\n"));
+ goto done;
+ }
}
+
/*
* Get the first 8 bytes of the device descriptor !
*
More information about the p4-projects
mailing list