All of lore.kernel.org
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Robert Hancock <rwh461@mail.usask.ca>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: Logs being spammed with "Unable to enumerate USB device"
Date: Tue, 30 Sep 2008 18:38:16 -0500	[thread overview]
Message-ID: <48E2B868.9070407@lwfinger.net> (raw)
In-Reply-To: <48D9912A.20303@lwfinger.net>

Larry Finger wrote:
> Robert Hancock wrote:
>> Is this just occurring during bootup? I think this is normal if the EHCI
>> driver is loaded after UHCI or OHCI because it causes the device to be
>> switched away from the other controller that's trying to enumerate it,
>> at least momentarily.
> 
> It sometimes happens at bootup, but at other times I will get hundreds
> of them in a row in the logs. I have put in some debugging where the
> message is triggered, but have not seen any of the flood-type since.

I now have more information. The if statement that triggers the
message is as follows:

if (hub->hdev->parent ||
    !hcd->driver->port_handed_over ||
    !(hcd->driver->port_handed_over)(hcd, port1))

For all the messages that I have captured, the first condition
(hub->hdev->parent) is always true.

For the isolated message that occurs at bootup, the second condition
(!hcd->driver->port_handed_over) is true and the third is false.

When the message storm occurs, the second condition is false, i.e.
hcd->driver->port_handed_over is not zero, but
!(hcd->driver->port_handed_over)(hcd, port1) is true.

As before, I am willing to test any patches. As the message storm is
rare, it will be difficult to show that a patch fixes the problem.

Larry


  reply	other threads:[~2008-09-30 23:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.dl+pVhW/kcgBFo0dsyPEgn0MhtE@ifi.uio.no>
2008-09-24  0:14 ` Logs being spammed with "Unable to enumerate USB device" Robert Hancock
2008-09-24  1:00   ` Larry Finger
2008-09-30 23:38     ` Larry Finger [this message]
2008-09-22 18:37 Larry Finger

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=48E2B868.9070407@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rwh461@mail.usask.ca \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.