Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 2010 23:32:41 +0900 (JST)
From:      UEMURA Tetsuya <t_uemura@macome.co.jp>
To:        Hans Petter Selasky <hselasky@c2i.net>, freebsd-usb@freebsd.org
Subject:   Re: FT4232H on ehci problem (was Re: usb/143832: [uftdi] Request support for FTDI FT4232H.)
Message-ID:  <20100215143241.246D740AF@towerrecords.dyndns.org>
In-Reply-To: <201002151506.14104.hselasky@c2i.net>
References:  <201002151500.56738.hselasky@c2i.net> <201002151506.14104.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Posted on Mon, 15 Feb 2010 15:06:14 +0100
by author Hans Petter Selasky <hselasky@c2i.net>
> On Monday 15 February 2010 15:00:56 Hans Petter Selasky wrote:
> > On Monday 15 February 2010 14:37:10 UEMURA Tetsuya wrote:
> > > > Now I have a problem with the device. When it is attached on ehci, it
> > > > always stalls when I do a bit heavy communication over it. This doesn't
> > > > happen with uhci (kldunload ehci or whatever).
> > >
> > > I did further investigation myself and found that wMaxPacketSize is
> > > 0x0200 when the device was on ehci (0x0040 on uhci), and the device
> > > seemed to work (at least not stall) on ehci if I changed
> > > UFTDI_[IO]BUFSIZE to 512.
> > >
> > > The device however stopped working on uhci with such a modification.
> > >
> > > By the way, the official FTDI Linux driver found at
> > > http://www.ftdichip.com/Drivers/VCP/Linux/ftdi_sio.tar.gz
> > > also seemed to specify 512 as its buffer sizes.
> > >
> > > Can anyone help me?
> > >
> > > Regards.
> > 
> > What platform are you running?

Hi Hans.

It's a recent 8-STABLE.  Full dmesg output and level 5 (or maybe level
10) usb log can be found at the following location.
http://lists.freebsd.org/pipermail/freebsd-usb/2010-February/008293.html

> There is a special feature in the new USB stack. Try to define:
> 
> #define UFTDI_IBUFSIZE 0  /* use wMaxPacketSize */

Thanks. I'll test it tomorrow.

Regards.

-- 
UEMURA Tetsuya <t_uemura@macome.co.jp>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100215143241.246D740AF>