Date: Mon, 10 Aug 2009 00:01:21 +0300 From: Nikolay Antsiferov <cenixxx@gmail.com> To: freebsd-current@freebsd.org Cc: lwindschuh@googlemail.com, hselasky@c2i.net Subject: Re: reattach 3g0 device: could not allocate new device Message-ID: <5d97c6ec0908091401l26c82ab4u448f4408762fc081@mail.gmail.com>
index | next in thread | raw e-mail
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 */
--
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5d97c6ec0908091401l26c82ab4u448f4408762fc081>
