From owner-freebsd-current@FreeBSD.ORG Thu Jun 3 14:22:55 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 0FD09106566C for ; Thu, 3 Jun 2010 14:22:55 +0000 (UTC) (envelope-from marcelorossi@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id BC4138FC19 for ; Thu, 3 Jun 2010 14:22:54 +0000 (UTC) Received: by gwj23 with SMTP id 23so117960gwj.13 for ; Thu, 03 Jun 2010 07:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=+zGexWl9tNMwJmPxkgDDqy/ELJlm2zYm9Q88AflRAvk=; b=M7s5zgW1ltN2OFAvsIcFEo0yOpDEsO6uKoBBchVGGXR5Wo7L75Q8bjNsnrE9nzid7G pHUVntV9VQ20izKHYDvl0xDgcCfvTJMbrzXB6e5Mr5GlV4Ip2vNTFjBn9jvvVVdpJyFc JKbJzG5M68R4BDAHxKOKx7lqyyPC0Uxkeu2tk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=NlCMIHCpw++O8eyAr54tmfPnHp92w+7Fg778AaqaAm7/vXs8ZZVbXJzaLb54v9cHe8 I0V88bieV547hMVohUwAVITqfLvIXaJquGz3F9RqHDRN6luMNG0/vN92nz6htMC/GSWp xTbJMXLXBCLqXpPrBD967gE+Hvoeqy3Sr4ltY= Received: by 10.224.96.89 with SMTP id g25mr4813595qan.42.1275574973674; Thu, 03 Jun 2010 07:22:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.86.71 with HTTP; Thu, 3 Jun 2010 07:22:33 -0700 (PDT) In-Reply-To: <201006021825.25337.hselasky@c2i.net> References: <201006021750.17588.hselasky@c2i.net> <201006021825.25337.hselasky@c2i.net> From: "Marcelo/Porks" Date: Thu, 3 Jun 2010 11:22:33 -0300 Message-ID: To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Garrett Cooper , 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: Thu, 03 Jun 2010 14:22:55 -0000 On Wed, Jun 2, 2010 at 1:25 PM, Hans Petter Selasky wrot= e: > Hi, > > The problem is that LOW speed does not support BULK transfers according t= o the > USB specification. I guess we could switch that support on, though I'd ra= ther > stick with the spec. > > Try changing this line in: > > src/sys/dev/usb/usb_transfer.c > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[USB_SPEED_LOW] =3D 0, =A0 =A0/* not suppo= rted */ > Into: > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[USB_SPEED_LOW] =3D 8, =A0 =A0/* not suppo= rted according to USB > spec. */ > Hi, Thanks again for the reply. I changed this line [1], but the result was the same: BARAD-DUR% uname -a FreeBSD BARAD-DUR.BUTECO 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r208760M: Thu Jun 3 10:13:44 BRT 2010 porks@BARAD-DUR.BUTECO:/usr/obj/mnt/ad2s1d/data/src/sys/BARAD-DUR i386 BARAD-DUR# kldstat Id Refs Address Size Name 1 29 0xc0400000 757368 kernel 2 1 0xc0b58000 5ad4 snd_cmi.ko 3 3 0xc0b5e000 574a4 sound.ko 4 1 0xc0bb6000 4dfa90 nvidia.ko 5 3 0xc1096000 2eacc linux.ko 6 1 0xc4405000 8000 linprocfs.ko 7 1 0xc4753000 3000 logo_saver.ko 8 1 0xc4a9b000 4000 umodem.ko BARAD-DUR# tail -f /var/log/messages Jun 3 11:10:21 BARAD-DUR kernel: uhub_reattach_port: port 1 reset failed, error=3DUSB_ERR_TIMEOUT Jun 3 11:10:21 BARAD-DUR kernel: uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 Jun 3 11:10:21 BARAD-DUR kernel: ugen0.3: at usbus0 Jun 3 11:10:21 BARAD-DUR kernel: umodem0: on usbus0 Jun 3 11:10:21 BARAD-DUR kernel: umodem0: data interface 1, has CM over data, has no break Jun 3 11:10:21 BARAD-DUR kernel: device_attach: umodem0 attach returned 6 Jun 3 11:10:21 BARAD-DUR kernel: umodem0: on usbus0 Jun 3 11:10:21 BARAD-DUR kernel: umodem0: data interface 1, has CM over data, has no break Jun 3 11:10:21 BARAD-DUR kernel: device_attach: umodem0 attach returned 6 BARAD-DUR# usbconfig -u 0 -a 3 dump_device_desc dump_curr_config_desc ugen0.3: at usbus0, cfg=3D0 md=3DHOST spd=3DLOW (1.5Mbps) pwr=3DON bLength =3D 0x0012 bDescriptorType =3D 0x0001 bcdUSB =3D 0x0110 bDeviceClass =3D 0x0002 bDeviceSubClass =3D 0x0000 bDeviceProtocol =3D 0x0000 bMaxPacketSize0 =3D 0x0008 idVendor =3D 0x16c0 idProduct =3D 0x05e1 bcdDevice =3D 0x0100 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001 Configuration index 0 bLength =3D 0x0009 bDescriptorType =3D 0x0002 wTotalLength =3D 0x0043 bNumInterfaces =3D 0x0002 bConfigurationValue =3D 0x0001 iConfiguration =3D 0x0000 bmAttributes =3D 0x0080 bMaxPower =3D 0x0032 Interface 0 bLength =3D 0x0009 bDescriptorType =3D 0x0004 bInterfaceNumber =3D 0x0000 bAlternateSetting =3D 0x0000 bNumEndpoints =3D 0x0001 bInterfaceClass =3D 0x0002 bInterfaceSubClass =3D 0x0002 bInterfaceProtocol =3D 0x0001 iInterface =3D 0x0000 Additional Descriptor bLength =3D 0x05 bDescriptorType =3D 0x24 bDescriptorSubType =3D 0x00 RAW dump: 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 Additional Descriptor bLength =3D 0x04 bDescriptorType =3D 0x24 bDescriptorSubType =3D 0x02 RAW dump: 0x00 | 0x04, 0x24, 0x02, 0x02 Additional Descriptor bLength =3D 0x05 bDescriptorType =3D 0x24 bDescriptorSubType =3D 0x06 RAW dump: 0x00 | 0x05, 0x24, 0x06, 0x00, 0x01 Additional Descriptor bLength =3D 0x05 bDescriptorType =3D 0x24 bDescriptorSubType =3D 0x01 RAW dump: 0x00 | 0x05, 0x24, 0x01, 0x03, 0x01 Endpoint 0 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008 bInterval =3D 0x00ff bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 Interface 1 bLength =3D 0x0009 bDescriptorType =3D 0x0004 bInterfaceNumber =3D 0x0001 bAlternateSetting =3D 0x0000 bNumEndpoints =3D 0x0002 bInterfaceClass =3D 0x000a bInterfaceSubClass =3D 0x0000 bInterfaceProtocol =3D 0x0000 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0001 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0008 bInterval =3D 0x0000 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 Endpoint 1 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0008 bInterval =3D 0x0000 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 [1] Actually the line is 3062 on current of 2010 Jun 2: http://fxr.watson.org/fxr/source/dev/usb/usb_transfer.c#L3060 --=20 Marcelo Rossi "This e-mail is provided "AS IS" with no warranties, and confers no rights.= "