From owner-freebsd-current@FreeBSD.ORG Wed Jun 2 15:53:04 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E0A51065670 for ; Wed, 2 Jun 2010 15:53:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id C3FED8FC22 for ; Wed, 2 Jun 2010 15:53:03 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=BgaHaSUmPskA:10 a=0qYQvVkOOIcA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=Au74WiBsAAAA:8 a=dT19lrtdAAAA:8 a=kewjWTeSPNhgMqER9SwA:9 a=-x4NIYE4me6d_4UwHPDETVhjfrQA:4 a=wPNLvfGTeEIA:10 a=YHSIMBuN5IEA:10 a=MSl-tDqOz04A:10 a=SV7veod9ZcQA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1369876617; Wed, 02 Jun 2010 17:53:01 +0200 From: Hans Petter Selasky To: Garrett Cooper Date: Wed, 2 Jun 2010 17:50:17 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006021750.17588.hselasky@c2i.net> Cc: Marcelo/Porks , current@freebsd.org Subject: Re: Fwd: umodem (4) recognize a CDC-ACM 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: Wed, 02 Jun 2010 15:53:04 -0000 On Wednesday 02 June 2010 03:23:47 Garrett Cooper wrote: > Looks like this device might be a bit quirky... Just forwarding to you > to see if you had any details for the OP. > Thanks! > -Garrett Hi, Can you dump the USB descriptors of your device? usbconfig -u 0 -a 3 dump_device_desc dump_curr_config_desc 0,3 is for ugen0.3 --HPS > > ---------- Forwarded message ---------- > From: Marcelo/Porks > Date: Tue, Jun 1, 2010 at 5:41 PM > Subject: umodem (4) recognize a CDC-ACM device > To: current > > > Hi guys. I have a device[1] that is recognized on Linux by the generic > CDC-ACM driver and I'm trying to do the same on FreeBSD current with > umodem (4). But, as you can see, I had no success: > > Jun 1 20:00:54 BARAD-DUR kernel: uhub_reattach_port: port 1 reset > failed, error=USB_ERR_TIMEOUT > Jun 1 20:00:54 BARAD-DUR kernel: uhub_reattach_port: device problem > (USB_ERR_TIMEOUT), disabling port 1 > Jun 1 20:00:55 BARAD-DUR kernel: ugen0.3: at usbus0 > Jun 1 20:00:55 BARAD-DUR kernel: umodem0: class 2/0, rev 1.10/1.00, addr 3> on usbus0 > Jun 1 20:00:55 BARAD-DUR kernel: umodem0: data interface 1, has CM > over data, has no break > Jun 1 20:00:55 BARAD-DUR kernel: device_attach: umodem0 attach returned 6 > Jun 1 20:00:55 BARAD-DUR kernel: umodem0: class 2/0, rev 1.10/1.00, addr 3> on usbus0 > Jun 1 20:00:55 BARAD-DUR kernel: umodem0: data interface 1, has CM > over data, has no break > Jun 1 20:00:55 BARAD-DUR kernel: device_attach: umodem0 attach returned 6 > > Have you some tip for me to make this work on FreeBSD? > > I had put some 'printf' at the source code and noticed that > umodem_attach() failed at line 378 [2]. The main reason is basically > that the usbd_transfer_setup() got an endpoint [3] with 'ep->methods > == NULL' [4] and this leads to "USB_ERR_NO_PIPE" on [5]. > > Thanks. > > [1] http://www.recursion.jp/avrcdc/driver.html#linux > [2] http://fxr.watson.org/fxr/source/dev/usb/serial/umodem.c#L378 > [3] http://fxr.watson.org/fxr/source/dev/usb/usb_transfer.c#L877 > [4] http://fxr.watson.org/fxr/source/dev/usb/usb_transfer.c#L880 > [5] http://fxr.watson.org/fxr/source/dev/usb/usb_transfer.c#L886 >