From 4d4ef0699309c9997c5dd79b2e95d2e985e6e979 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 25 Sep 2008 12:16:18 +0000 Subject: [PATCH] Tell umass to leave Huawei radio devices alone so ubsa(4) will be able to kick them into shape. --- sys/dev/usb/umass.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 4a92ab4069b..a04a2633412 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. */