public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Bryan Wu <cooloney@kernel.org>
Cc: Felipe Balbi <me@felipebalbi.com>,
	tony@atomide.com, linux-omap@vger.kernel.org
Subject: Re: [Help 1/2] MUSB: ZiO! CF card reader will trigger a change from MUSB host mode to MUSB peripheral mode
Date: Fri, 11 Apr 2008 09:13:50 -0700	[thread overview]
Message-ID: <200804110913.51170.david-b@pacbell.net> (raw)
In-Reply-To: <386072610804100424l46273f0en9cc531dd7ec876ee@mail.gmail.com>

On Thursday 10 April 2008, Bryan Wu wrote:
> >  And for our development board EZKIT548, it can provide 500mA current
> >  at 5V as it claimed in manual
> >  with a external regular. So from my point of view, this bug is not
> >  related with 100mA current limit issue.

It's *supposed* to be able to provide that much ... steady
state.  But the issue here is current spikes that cause the
voltage to drop too low.

Did you stick a scope on that signal and *verify* that the
voltage never dropped below the valid level?


> These days I tried hard to workaround this issue, but failed:
> 
> - When VBUS_ERR happens in OTG_A_HOST state and the OTG is in
> peripheral mode, I try to start a new session and power on VBUS.
> - CONNECT IRQ fired and OTG is switch back to host mode.

It needs to re-enumerate at this point, including USB reset.


> - In CONNECT IRQ handler, I rescan the musb->endpoint[i].in_qh or
> musb->endpoint[i].out_qh. Then resume the urb transfer which was
> stopped by the wrong VBUS_ERR mode switch IRQ. or just dequeue the urb
> to call off the transfer.
> - But the ZiO does not reply anymore. No IRQ from USB hardware. World
> keeps silence.

That's compatible with the voltage actually dropping too low,
so that the peripheral AND host see the session as broken.

Sometimes it can help to put a powered hub in between the
musb host and the peripheral ...

- Dave




--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2008-04-11 16:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-07 10:15 [Help 1/2] MUSB: ZiO! CF card reader will trigger a change from MUSB host mode to MUSB peripheral mode Bryan Wu
2008-04-07 10:19 ` Felipe Balbi
2008-04-07 10:35   ` Bryan Wu
2008-04-07 10:46     ` Felipe Balbi
2008-04-07 11:08       ` Bryan Wu
2008-04-07 12:38         ` Felipe Balbi
2008-04-07 16:05           ` David Brownell
2008-04-07 17:48             ` Felipe Balbi
2008-04-08  7:06             ` Bryan Wu
2008-04-10 11:24               ` Bryan Wu
2008-04-11 14:59                 ` Felipe Balbi
2008-04-11 16:13                 ` 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=200804110913.51170.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=cooloney@kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=me@felipebalbi.com \
    --cc=tony@atomide.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