Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
To: "Enric Balletbò i Serra"
	<eballetbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Alan Stern
	<stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
Subject: Re: omap: USB host disconnects connecting a device through USB HUB
Date: Fri, 8 Apr 2011 10:36:05 +0300	[thread overview]
Message-ID: <20110408073603.GB9489@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <BANLkTinNF2C6_2ApHke+Oi74zovUwbWkCQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Thu, Apr 07, 2011 at 11:03:38PM +0200, Enric Balletbò i Serra wrote:
> Hi,
> 
> 2011/4/7 Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>:
> > On Thu, 7 Apr 2011, Enric Balletbò i Serra wrote:
> >
> >> Hi all,
> >>
> >> I'm experimenting some issues with USB on IGEP v2 board, in certain
> >> cases I've an USB disconnect when I plug a device. For me it fails
> >> with kernel 2.6.35 but I think it also affect newer kernel, the issue
> >> is easy to reproduce following these steps:
> >>
> >> 1. Power up the board (without any device connected )
> >>
> >> 2. When kernel is up, connect a powered USB HUB 2.0 to the USB host
> >> port, kernel shows,
> >>
> >> usb 1-1: new high speed USB device using ehci-omap and address 2
> >> usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
> >> usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> >> usb 1-1: Product: USB2.0 Hub
> >> hub 1-1:1.0: USB hub found
> >> hub 1-1:1.0: 4 ports detected
> >> usb 1-1.4: new high speed USB device using ehci-omap and address 3
> >> usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0608
> >> usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> >> usb 1-1.4: Product: USB2.0 Hub
> >> hub 1-1.4:1.0: USB hub found
> >> hub 1-1.4:1.0: 4 ports detected
> >>
> >> 3. Then if I connect a device (for example a pendrive) to the HUB I
> >> get USB disconnect message
> >>
> >> usb 1-1: USB disconnect, address 2
> >> usb 1-1.4: USB disconnect, address 3
> >>
> >> OTOH, it works without problem
> >>   1. if power up the board with the USB HUB connected to the USB Host
> >> port and the device connected to the USB hub.
> >>   2. if after kernel is up, connect the USB HUB + device to the USB Host port
> >>
> >> Anyone is experimenting something like this with other OMAP3-based boards ?
> >
> > At first glance, it looks like a power-related issue.  Current inrush
> > when the device is plugged in, or something like that.
> >
> > What happens if you attach the hub and pendrive to a standard PC?
> >
> 
> With standard PC works as expected, would be possible a problem with
> omap-ehci driver ? Maybe Felipe can give some light ?

Maybe PM is kicking in and turning off the clocks. Donno. What if you
use function tracer so we know the last called function before the
problem ? Just filter the call to *hci*.

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

      parent reply	other threads:[~2011-04-08  7:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07  9:33 omap: USB host disconnects connecting a device through USB HUB Enric Balletbò i Serra
     [not found] ` <BANLkTim4FNNH3MfbEAwwpGzGvvLARWW+KA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-07 14:37   ` Alan Stern
     [not found]     ` <Pine.LNX.4.44L0.1104071036040.2147-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2011-04-07 21:03       ` Enric Balletbò i Serra
     [not found]         ` <BANLkTinNF2C6_2ApHke+Oi74zovUwbWkCQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-08  7:36           ` Felipe Balbi [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=20110408073603.GB9489@legolas.emea.dhcp.ti.com \
    --to=balbi-l0cymroini0@public.gmane.org \
    --cc=eballetbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.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