public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-omap-open-source@linux.omap.com
Cc: Albert Santoni <ASantoni@evertz.com>
Subject: Re: musb problems in git
Date: Sat, 25 Aug 2007 14:45:05 -0700	[thread overview]
Message-ID: <200708251445.05554.david-b@pacbell.net> (raw)
In-Reply-To: <0474A5584072DA1197F50007E90E6B1106C7E283@PORTIA>

On Thursday 23 August 2007, Albert Santoni wrote:
> Hi guys,
> 
> I pulled the latest musb changes from the OMAP tree into my local DaVinci
> tree, and I'm experiencing a strange problem with the musb_hdrc driver now.

It passed peripheral sanity tests though, at least for me,
hooked up as a high speed link ...


> If I do a certain USB control transfer (that used to work before), dmesg
> will spit out a bunch of these messages:
>     
>     ep0_txstate 495: odd; csr0 0000
> 
> ... and the transfer will timeout. Any further communication from the host
> to the gadget will also timeout.

It's not supposed to do that, obviously.  But without information
about that control transfer, it's hard to say what's going wrong.

That could happen after a MUSB_CSR0_TXPKTRDY irq when there's no
transfer pending but the endpoint is still marked as being in the
TX stage (issuing IN packets) not STATUSOUT (host acks it).


> Upon trying to reload the musb_hdrc module, 
> insmod will freeze.

Again, without info debugging isn't possible.  Where does it
freeze?  Alt-Sysrq-T (or "echo t > /proc/sysrq-trigger") will
show relevant information.


> Lastly, the kernel also occasionally spits out these message:
> 
>     musb_g_ep0_irq 701: SETUP packet len 10 != 8 ?
> 
> I don't recall these messages occuring before I started using the updated
> musb driver. (The last time I saw messages like this was when I had a flakey
> USB cable, but I haven't changed my hardware configuration.)

Those messages seem to be symptoms of some race inside the
hardware.  Usually the value is zero; a couple times I've
seen four; never have I seen ten.  It would be nice to know
how to avoid triggering that race, but if that information
is available it's not in public docs.


> Has anyone else experienced any problems running the latest musb code that's
> in the OMAP tree on a DaVinci kernel?

I ran some host side sanity tests, and yes there are a
few "new" misbehaviors.  The one most relevant to this
would be that the "get interface status" control requests
misbehave, causing regression test failures.  But host and
peripheral roles don't share any protocol code, just the
core I/O logic.

- Dave

      reply	other threads:[~2007-08-25 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 19:42 musb problems in git Albert Santoni
2007-08-25 21:45 ` David Brownell [this message]

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=200708251445.05554.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=ASantoni@evertz.com \
    --cc=linux-omap-open-source@linux.omap.com \
    /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