Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-07-18 Thread Hans Petter Selasky
Hi Oleksandr, Got some time to review the code you committed to HEAD: 1) You need to distinguish between STALL and other errors. This is a bit important, because STALL is a PID and other errors can mean anything. See attached patch. 2) You should not use the NAKTO feature, because USB

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-07-05 Thread Oleksandr Tymoshenko
On 2013-07-01, at 9:48 PM, Oleksandr Tymoshenko go...@bluezbox.com wrote: On 2013-06-26, at 11:47 PM, Hans Petter Selasky h...@bitfrost.no wrote: On 06/27/13 02:53, Oleksandr Tymoshenko wrote: On 2013-04-07, at 12:04 AM, Hans Petter Selasky h...@bitfrost.no wrote: On 04/06/13 22:50,

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-07-01 Thread Oleksandr Tymoshenko
On 2013-06-26, at 11:47 PM, Hans Petter Selasky h...@bitfrost.no wrote: On 06/27/13 02:53, Oleksandr Tymoshenko wrote: On 2013-04-07, at 12:04 AM, Hans Petter Selasky h...@bitfrost.no wrote: On 04/06/13 22:50, Oleksandr Tymoshenko wrote: Hello, This is first iteration of Host Mode

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-06-27 Thread Hans Petter Selasky
On 06/27/13 08:47, Hans Petter Selasky wrote: /* force transfer failure */ MUSB2_WRITE_1(sc, MUSB2_REG_RXFADDR(0), 127); XXX channel should not be re-used until after 2*125us. Can probably use ticks for this! Probably td-channel instead of (0) --HPS

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-06-26 Thread Oleksandr Tymoshenko
On 2013-04-07, at 12:04 AM, Hans Petter Selasky h...@bitfrost.no wrote: On 04/06/13 22:50, Oleksandr Tymoshenko wrote: Hello, This is first iteration of Host Mode support for Mentor Graphics OTG USB controller. I tested it by building kernel with USB memory stick mounted as /usr/obj,

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-04-07 Thread Hans Petter Selasky
On 04/06/13 22:50, Oleksandr Tymoshenko wrote: Hello, This is first iteration of Host Mode support for Mentor Graphics OTG USB controller. I tested it by building kernel with USB memory stick mounted as /usr/obj, resulting kernel was bootable and worked fine. I reused some ideas (mostly for

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-04-07 Thread Hans Petter Selasky
On 04/06/13 22:50, Oleksandr Tymoshenko wrote: Hello, This is first iteration of Host Mode support for Mentor Graphics OTG USB controller. I tested it by building kernel with USB memory stick mounted as /usr/obj, resulting kernel was bootable and worked fine. I reused some ideas (mostly for

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-04-07 Thread Hans Petter Selasky
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

Re: Beaglebone USB driver (Mentor Graphics OTG)

2013-04-06 Thread Aleksandr Rybalko
On Sat, 06 Apr 2013 13:50:44 -0700 Oleksandr Tymoshenko go...@bluezbox.com wrote: Hello, This is first iteration of Host Mode support for Mentor Graphics OTG USB controller. I tested it by building kernel with USB memory stick mounted as /usr/obj, resulting kernel was bootable and worked