summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2008-09-25 12:16:18 +0000
committerphk <phk@FreeBSD.org>2008-09-25 12:16:18 +0000
commite53ceba80b742782849d10cefd3c6d2811e7204f (patch)
tree23ab0c7192ffc7abfc7094a72542b6164ec68260
parentb8caca61212e804c9e3ffc4ea40055f30f5c4314 (diff)
downloadFreeBSD-src-e53ceba80b742782849d10cefd3c6d2811e7204f.zip
FreeBSD-src-e53ceba80b742782849d10cefd3c6d2811e7204f.tar.gz
Tell umass to leave Huawei radio devices alone so ubsa(4) will
be able to kick them into shape.
-rw-r--r--sys/dev/usb/umass.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index 4a92ab4..a04a263 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -1173,6 +1173,13 @@ umass_match_proto(struct umass_softc *sc, usbd_interface_handle iface,
dd = usbd_get_device_descriptor(udev);
+ /*
+ * These are radio devices with auto-install flash disks for win/mac.
+ * We want the ubsa driver to kick them into shape instead.
+ */
+ if (UGETW(dd->idVendor) == USB_VENDOR_HUAWEI)
+ return(UMATCH_NONE);
+
/* An entry specifically for Y-E Data devices as they don't fit in the
* device description table.
*/
OpenPOWER on IntegriCloud