reattach 3g0 device: could not allocate new device
Nikolay Antsiferov
cenixxx at gmail.com
Sun Aug 9 21:24:17 UTC 2009
Hi.
I have seen this issue since december 2008. I have 3G EvDO modem
Novatel U-727. It fully supported by u3g driver except this issue with
replugging.
If I kldload u3g driver and replug modem i have the same messages:
> $ kldload u3g
> <plug in UMTS device>
> dmesg:
> usb_test_autoinstall:571: Eject CD command status:
> USB_ERR_NORMAL_COMPLETION usb_alloc_device:1781: Found Huawei auto-install
> disk!
> ugen0.2: <Novatel Wireless> at usbus0
> ugen0.2: <Novatel Wireless> at usbus0 (disconnected)
> uhub_reattach_port:440: could not allocate new device!
>
HPS:
Your patch resolved for me this problem. Thanks.
I tested replugging modem, device attach correctly,
>Try this patch:
>src/sys/dev/usb/usb_device.c
>@@ -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 */
--
More information about the freebsd-current
mailing list