From owner-freebsd-current@FreeBSD.ORG Mon Feb 8 17:48:45 2010 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 EDC3C106566C for ; Mon, 8 Feb 2010 17:48:44 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 97B6E8FC12 for ; Mon, 8 Feb 2010 17:48:44 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 4E4435AC35; Mon, 8 Feb 2010 18:48:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 4B4A35AC1D; Mon, 8 Feb 2010 18:48:42 +0100 (CET) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 2C1B45CC34; Mon, 8 Feb 2010 18:48:42 +0100 (CET) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.1FP1) with ESMTP id 2010020818484071-31973 ; Mon, 8 Feb 2010 18:48:40 +0100 Received: by wep4035 (sSMTP sendmail emulation); Mon, 08 Feb 2010 18:48:40 +0100 Date: Mon, 8 Feb 2010 18:48:40 +0100 From: Alexey Shuvaev To: Matthias Apitz Message-ID: <20100208174840.GA13739@wep4035.physik.uni-wuerzburg.de> References: <20100208153308.GA2071@current.Sisis.de> MIME-Version: 1.0 In-Reply-To: <20100208153308.GA2071@current.Sisis.de> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.20 (2009-06-14) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.1FP1|January 05, 2010) at 02/08/2010 06:48:41 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.1FP1|January 05, 2010) at 02/08/2010 06:48:41 PM, Serialize complete at 02/08/2010 06:48:41 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: freebsd-current@freebsd.org, hselasky@c2i.net Subject: Re: USB cdce stopped working (and not only cdce?) 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: Mon, 08 Feb 2010 17:48:45 -0000 On Mon, Feb 08, 2010 at 04:33:08PM +0100, Matthias Apitz wrote: > > Hello, > > I've just realized that while plug-in my OpenMoko Freerunner into the > USB port it does not give a cdce0 interface, but just an error: > > Feb 8 16:29:26 current kernel: usb2_alloc_device:1569: set address 2 > failed (USB_ERR_STALLED, ignored) > Feb 8 16:29:26 current kernel: usb2_alloc_device:1607: getting device > descriptor at addr 2 failed, USB_ERR_STALLED! > Feb 8 16:29:27 current kernel: usb2_req_re_enumerate:1519: addr=2, set > address failed! (USB_ERR_STALLED, ignored) > Feb 8 16:29:27 current kernel: usb2_req_re_enumerate:1533: getting > device descriptor at addr 2 failed, USB_ERR_STALLED! > Feb 8 16:29:28 current kernel: usb2_req_re_enumerate:1519: addr=2, set > address failed! (USB_ERR_STALLED, ignored) > Feb 8 16:29:28 current kernel: usb2_req_re_enumerate:1533: getting > device descriptor at addr 2 failed, USB_ERR_STALLED! > Feb 8 16:29:28 current kernel: ugen5.2: <(null)> at usbus5 > (disconnected) > Feb 8 16:29:28 current kernel: uhub_reattach_port:416: could not > allocate new device! > > Until some days ago it worked (and I have not changed) the kernel since > then: > > # uname -a > FreeBSD current.Sisis.de 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Jan 10 > 09:55:14 CET 2010 guru@current.Sisis.de:/usr/obj/usr/src/sys/GENERIC > i386 > > # bzip2 -dc messages.*.bz2 | fgrep cdce > Feb 5 12:51:21 current kernel: cdce0: on usbus5 > Feb 5 12:51:21 current kernel: ue0: on cdce0 > Feb 5 14:30:40 current kernel: cdce0: at uhub0, port 1, addr 2 (disconnected) > Feb 5 14:50:17 current kernel: cdce0: on usbus5 > Feb 5 14:50:17 current kernel: ue0: on cdce0 > Feb 5 17:03:25 current kernel: cdce0: at uhub0, port 1, addr 2 (disconnected) > Feb 4 14:21:52 current kernel: cdce0: on usbus5 > Feb 4 14:21:52 current kernel: ue0: on cdce0 > Feb 4 15:00:05 current kernel: cdce0: at uhub0, port 1, addr 2 (disconnected) > Feb 4 16:05:07 current kernel: cdce0: on usbus5 > Feb 4 16:05:07 current kernel: ue0: on cdce0 > Feb 4 17:16:48 current kernel: cdce0: at uhub0, port 1, addr 2 (disconnected) > > What could be the reason for the above message? Thx > > matthias > I have noticed that it is relatively easy to wedge the USB stack on recent CURRENT. Personally I manage to reliable wedge it by a user-space program using devel/libftdi (-> libusb in base) by re-programming the 'chunk-size' from 4096 to 1 byte. Haven't looked at it more closely yet. Another similar report was: http://lists.freebsd.org/pipermail/freebsd-current/2010-January/015200.html Under 'wedge' I mean that anything connected to a 'wedged' HUB fails to enumerate. Workarounds: 1) Try to use the port on another HUB (normally 1 HUB serves 2 USB ports). 2) Reboot the computer and try again. Hans, do you have any ideas? P.S. My CURRENT is not so current at the moment :) ~> uname -a FreeBSD wep4035 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r202285: Thu Jan 14 19:04:21 CET 2010 root@wep4035:/usr/obj/usr/src/sys/GENERIC amd64 Alexey.