From owner-freebsd-current@FreeBSD.ORG Fri Jun 4 01:03:13 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 ECDD1106564A for ; Fri, 4 Jun 2010 01:03:13 +0000 (UTC) (envelope-from marcelorossi@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE7E8FC1C for ; Fri, 4 Jun 2010 01:03:13 +0000 (UTC) Received: by vws19 with SMTP id 19so287602vws.13 for ; Thu, 03 Jun 2010 18:03:12 -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=zGGsJ0uk5CEU3IUnarVPvWXskfmJsGhVmNkyw4hXIDw=; b=GID8vzVxaD9aIocEGnxIuQbyvFhDSloRWcFOD0fZuelhhRV4uw9NfonnBEb9chM5Pm 6WXjGPb7HiE9e4gVEKI5JmETnORTHj3G/dTOeDEjRubjYBdsRRQcYs2JXr86ciAt7523 FHyJz/tOBNjsRh8vUGH7gGXZN974p3nfvxFJk= 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=BscqBdj9wuSqhv7nicjwgBSXyGbhoYF6ec26ZGFscvbUD4C7DWkbtuj3fFYepxfx0+ TPlF+0MCrpEYsbO4LZTO5+stYXN4cGWtyRwbj+AvPq0ObGExqJnbhgoQBOKU/WdmmB07 +wf6T56OEo8Q8gX2rG9GShTQC21Yh3eyfRE+o= Received: by 10.224.27.142 with SMTP id i14mr5327903qac.272.1275613392333; Thu, 03 Jun 2010 18:03:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.86.71 with HTTP; Thu, 3 Jun 2010 18:02:52 -0700 (PDT) In-Reply-To: <201006031757.03341.hselasky@c2i.net> References: <201006031750.08693.hselasky@c2i.net> <201006031754.17053.hselasky@c2i.net> <201006031757.03341.hselasky@c2i.net> From: "Marcelo/Porks" Date: Thu, 3 Jun 2010 22:02:52 -0300 Message-ID: To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Garrett Cooper , freebsd-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: Fri, 04 Jun 2010 01:03:14 -0000 On Thu, Jun 3, 2010 at 12:57 PM, Hans Petter Selasky wro= te: > On Thursday 03 June 2010 17:54:17 Hans Petter Selasky wrote: >> On Thursday 03 June 2010 17:50:08 Hans Petter Selasky wrote: >> > On Thursday 03 June 2010 16:22:33 Marcelo/Porks wrote: >> > > On Wed, Jun 2, 2010 at 1:25 PM, Hans Petter Selasky >> > >> > wrote: >> > > > Hi, >> > > > >> > > > The problem is that LOW speed does not support BULK transfers >> > > > according to the USB specification. I guess we could switch that >> > > > support on, though I'd rather stick with the spec. >> > > > >> > > > Try changing this line in: >> > > > >> > > > src/sys/dev/usb/usb_transfer.c >> > > > > > Hi, > > Should be like this: Note the structure is called "bulk_min": > > =A0 =A0 =A0 =A0static const uint16_t bulk_min[USB_SPEED_MAX] =3D { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[USB_SPEED_LOW] =3D 8, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[USB_SPEED_FULL] =3D 8, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[USB_SPEED_HIGH] =3D 512, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[USB_SPEED_VARIABLE] =3D 512, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[USB_SPEED_SUPER] =3D 1024, > =A0 =A0 =A0 =A0}; > --HPS Hi, This was what I changed at first. I tried in a FreeBSD current (Jun 3) and at 8.0-p3. At FreeBSD current I changed the line 3062. From: [USB_SPEED_LOW] =3D 0, /* not supported */ To: [USB_SPEED_LOW] =3D 8, Like you suggested I'll try to talk with you in #bsdusb at efnet Thank you! --=20 Marcelo Rossi "This e-mail is provided "AS IS" with no warranties, and confers no rights.= "