linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: metan@ucw.cz (Cyril Hrubis)
To: linux-arm-kernel@lists.infradead.org
Subject: usb gadget on zaurus and kexec
Date: Tue, 13 Jul 2010 13:26:49 +0200	[thread overview]
Message-ID: <20100713112649.GA17065@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <87wru7xc4z.fsf@free.fr>

Hi!
> >> > Dumping out the registers of the two situations and doing a comparison
> >> > then might be a quick way.
> >> 
> >> Any debugging update on this?
> >
> > Yeah, there's a workaround. Cyril's working on a proper fix, but that might take 
> > some time. Simply -- UP2OCR is misconfigured.
> 
> That's quite interesting. In the pxa27x_udc gadget driver, I seem to have a
> regression on the resume from suspend to RAM path. My USB UDC is not enumerated
> anymore.
>
>
> The might be a correlation, as UP2OCR is lost in the suspend process. I'm very
> interested by your analysis of the issue you have on kexec, as that might ease
> my work :)

Well it seems, at least for spitz that UP2OCR is set to host at the
initialization and not touched anymore (spitz.c). I guess that the OE kernel,
that is flashed in my spitz, changes UP2OCR when gadget/host driver is loaded
but this doesn't work in vanilla kernels for some time. That would clarify why
gadgets doesn't work after kexec at least for me. 
 
> Besides, it's been some time I've been thinking that the pxa deserves a proper
> encapsulation of the USB internal routing paths (ie. a proper way to switch from
> usb host handled by ohci-pxa27x to an usb client handled by pxa2x_udc), to
> reflect the setup of the Pad Unit (see TRM chapter 12.4 : tables 12.2, 12.15,
> 12.17, 12.18 and 12.19).
> 
> Whatever you find on the USB Port2 configuration register would help me design
> the Pad block.
> 

Would be great. So far the GPIO for usb host/slave cable detection is not used
on spitz so there is no way to switch to USB slave for gadgets to work if you
don't want to play with devmem2.

There is some otg code in drivers/usb/otg/ but I haven't time to look on that yet.

-- 
metan

  reply	other threads:[~2010-07-13 11:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19 15:46 usb gadget on zaurus and kexec Cyril Hrubis
2010-05-20  5:05 ` Eric Miao
2010-06-10  6:10   ` Eric Miao
2010-06-10  7:00     ` Marek Vasut
2010-06-10 13:14       ` Robert Jarzmik
2010-07-13 11:26         ` Cyril Hrubis [this message]
2010-07-13 16:47           ` Stanislav Brabec

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=20100713112649.GA17065@atrey.karlin.mff.cuni.cz \
    --to=metan@ucw.cz \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).