PERFORCE change 167092 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Aug 7 17:50:35 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=167092
Change 167092 by hselasky at hselasky_laptop001 on 2009/08/07 17:50:13
USB CORE:
- Leave device unconfigured instead of disabling the USB port
when Huawei Autoinstall disk detection triggers. This should
fix problems that the Huawei device is not detected after
Autoinstall eject is issued.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_device.c#48 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_device.c#48 (text+ko) ====
@@ -1777,7 +1777,8 @@
}
} else if (usb_test_huawei_autoinst_p(udev, &uaa) == 0) {
DPRINTFN(0, "Found Huawei auto-install disk!\n");
- err = USB_ERR_STALLED; /* fake an error */
+ /* leave device unconfigured */
+ usb_unconfigure(udev, USB_UNCFG_FLAG_FREE_SUBDEV);
}
} else {
err = 0; /* set success */
@@ -2452,7 +2453,7 @@
void
usbd_enum_lock(struct usb_device *udev)
{
- newbus_xlock();
+ newbus_slock();
sx_xlock(udev->default_sx + 1);
}
@@ -2462,7 +2463,7 @@
usbd_enum_unlock(struct usb_device *udev)
{
sx_xunlock(udev->default_sx + 1);
- newbus_xunlock();
+ newbus_sunlock();
}
/*
More information about the p4-projects
mailing list