Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Apr 2013 09:25:21 +0200
From:      Hans Petter Selasky <hps@bitfrost.no>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        arm@freebsd.org, usb@freebsd.org
Subject:   Re: Beaglebone USB driver (Mentor Graphics OTG)
Message-ID:  <51611F61.3040402@bitfrost.no>
In-Reply-To: <51611A7B.2010105@bitfrost.no>
References:  <51608AA4.2020804@bluezbox.com> <51611A7B.2010105@bitfrost.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/07/13 09:04, Hans Petter Selasky wrote:
>
> 3) Make sure that channels are not generating tokens if they are aborted
> / cancelled / timedout. This can not be verified using a USB mass
> storage device. Verify this by connecting a USB serial adapter. Try to
> open/close /dev/cuaU0. Make sure it does not loose any bytes and that
> channel cancel does not hang forever.

Hi,

I recommend that cancel works like this:

1) Set invalid device address, like 127.

2) Use DMA delay feature to make a 4ms wait (see XHCI driver for example).

3) Free host channel (final).

--HPS



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