PERFORCE change 149778 for review
Andrew Thompson
thompsa at FreeBSD.org
Sun Sep 14 21:35:01 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=149778
Change 149778 by thompsa at thompsa_burger on 2008/09/14 21:34:48
ata-usb, umass and ustorage are all generic drivers, let all other usb
modules try to attach first.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/storage/ata-usb2.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/storage/umass2.c#10 edit
.. //depot/projects/usb/src/sys/dev/usb2/storage/ustorage2_fs.c#10 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/storage/ata-usb2.c#7 (text) ====
@@ -284,6 +284,10 @@
if (uaa->usb2_mode != USB_MODE_HOST) {
return (ENXIO);
}
+ if (uaa->use_generic == 0) {
+ /* give other drivers a try first */
+ return (ENXIO);
+ }
id = usb2_get_interface_descriptor(uaa->iface);
if ((!id) || (id->bInterfaceClass != UICLASS_MASS)) {
return (ENXIO);
==== //depot/projects/usb/src/sys/dev/usb2/storage/umass2.c#10 (text+ko) ====
@@ -1396,6 +1396,10 @@
if (uaa->usb2_mode != USB_MODE_HOST) {
return (ENXIO);
}
+ if (uaa->use_generic == 0) {
+ /* give other drivers a try first */
+ return (ENXIO);
+ }
temp = umass_probe_proto(dev, uaa);
return (temp.error);
==== //depot/projects/usb/src/sys/dev/usb2/storage/ustorage2_fs.c#10 (text+ko) ====
@@ -294,6 +294,10 @@
if (uaa->usb2_mode != USB_MODE_DEVICE) {
return (ENXIO);
}
+ if (uaa->use_generic == 0) {
+ /* give other drivers a try first */
+ return (ENXIO);
+ }
/* Check for a standards compliant device */
id = usb2_get_interface_descriptor(uaa->iface);
if ((id == NULL) ||
More information about the p4-projects
mailing list