public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Vitaly Kuzmichev <vkuzmichev@mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] usage of DMA
Date: Tue, 18 Jan 2011 16:36:17 +0300	[thread overview]
Message-ID: <4D359751.9020700@mvista.com> (raw)
In-Reply-To: <201101172148.49649.korgull@home.nl>

Hi Marcel,

Marcel wrote:
> 
> I have already reduced the code quite far. Basically all dma related stuff is 
> gone. 

According to your first message in this thread I suppose that you are
using  atmel_usba_udc  driver. Am I right?
Looks like it's able to use PIO mode transfer (I mean linux driver).
Each EP has can_dma flag which can be passed through platform_data.
So:
1) Could you please make sure that this driver is working in linux in
PIO mode (with can_dma set to zero)?
2) Could you port this driver to u-boot w/o changes in functions that
talk with hardware registers and try to use PIO mode (with can_dma set
to zero and commented DMA function calls)?

> The device is recognised by the host without errors, but there are some issues 
> left as the OUT data doesn't get processed by ether.c.

After the device descriptor is received the host usually wants to setup
the device.
Has the setup stage been done?

> I'm pulling my hair on this one, but since the data arrives in the OUT fifo and 
> I can read it from the controller part I guess all end points are really up 
> and running but the interfacing to the gadget system maybe isn't correct.
> Perhaps that's related to the driver I'm porting which comes from a 2.6.33 
> kernel.

2.6.33 controller driver should be compatible with 2.6.24 gadget stack
(which was ported to u-boot).

> I read quite a lot of the USB device specification for my controller and so far 
> think I've done everything right regarding the registers. 

Nobody can be sure in such thing :) Even if everything works

Could you enable debug output for ether.c and for your UDC driver and
show the results?

____
With best regards,
Vitaly.

  reply	other threads:[~2011-01-18 13:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-11 21:51 [U-Boot] {Spam?} usage of DMA Marcel
2011-01-16  7:56 ` Albert ARIBAUD
2011-01-17 20:48   ` [U-Boot] " Marcel
2011-01-18 13:36     ` Vitaly Kuzmichev [this message]
2011-01-18 14:06       ` Vitaly Kuzmichev
2011-01-18 18:12         ` Marcel
2011-01-18 18:11       ` Marcel
2011-01-19  9:04         ` Vitaly Kuzmichev
2011-01-19 21:33           ` Marcel
2011-01-19 22:44           ` Marcel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D359751.9020700@mvista.com \
    --to=vkuzmichev@mvista.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox