From owner-freebsd-current@FreeBSD.ORG Sun Aug 9 21:24:16 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD4D6106566B for ; Sun, 9 Aug 2009 21:24:16 +0000 (UTC) (envelope-from cenixxx@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 631058FC1A for ; Sun, 9 Aug 2009 21:24:16 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so415354fge.12 for ; Sun, 09 Aug 2009 14:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=s8gHi8n/Oxfugn51mAqUXSm2DYiHkvSnvUWRNfRcAQM=; b=alBWn8LyKyG9t1fhJfzZhoBgWsFoNSLZPrVhg0Yh/StRjadqdvdhjt9Cm35B2wnO8g fcwlOPcD7B7uDyyOQ/Tnkfmzs1wQDIK1yiqFxHqYH47SZfa/1O6Ojp7ovAt1y4CioBwZ pwh//THp4AJIa3r84nY5QS9DPkAu/VnW1koPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=O17vfLXupr1qjbGnJZAleXG461obZit0beZDy1sQJ2MJsXgE6PLwBVDDU3jlzc+GzO RqaWdyx0fqCqNJ5KQ7+XhN8bJnRj4zzN4cpiIuuOOKqFw6dLgYHh7T5ysFbOrTk+4ZP9 MkBOBFXuBXgqR/sTzue3TKvLbAFaCTTgj05BA= MIME-Version: 1.0 Received: by 10.86.74.4 with SMTP id w4mr2596401fga.65.1249851681068; Sun, 09 Aug 2009 14:01:21 -0700 (PDT) Date: Mon, 10 Aug 2009 00:01:21 +0300 Message-ID: <5d97c6ec0908091401l26c82ab4u448f4408762fc081@mail.gmail.com> From: Nikolay Antsiferov To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: lwindschuh@googlemail.com, hselasky@c2i.net Subject: Re: reattach 3g0 device: could not allocate new device X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2009 21:24:17 -0000 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 > > dmesg: > usb_test_autoinstall:571: Eject CD command status: > USB_ERR_NORMAL_COMPLETION usb_alloc_device:1781: Found Huawei auto-install > disk! > ugen0.2: at usbus0 > ugen0.2: 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 */ --