Re: reattach 3g0 device: could not allocate new device

From: Nikolay Antsiferov <cenixxx_at_gmail.com>
Date: Mon, 10 Aug 2009 00:01:21 +0300
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

>_at__at_ -1777,7 +1777,8 _at__at_
>                       }
>              } 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 */

--
Received on Sun Aug 09 2009 - 19:24:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:53 UTC