From: Larry Finger <Larry.Finger@lwfinger.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: pali.rohar@gmail.com, Greg Kroah-Hartman <gregkh@suse.de>,
USB list <linux-usb@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC/RFT] OHCI: Fix for regression in 2.6.37-rc1 since commit 3df7169e7
Date: Fri, 10 Dec 2010 18:17:58 -0600 [thread overview]
Message-ID: <4D02C336.707@lwfinger.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1011041039450.2522-100000@netrider.rowland.org>
Alan,
The box with the problem has been repaired, and I am trying to debug it.
What I have learned so far:
The "unable to enumerate" message is triggered because PORT_OWNER is not set in
the status register.
So far, I have found that this bit is set in only 4 places:
1. set_owner()
2. store_companion()
3. ehci_hub_control()
4. ehci_relinquish_port()
5. check_reset_complete()
Of these, only #5 is called before the first enumeration message is logged, but
it is only called with arguments that never set the PORT_OWNED bit in the status.
At this point I'm at a loss. Could you please give me ideas on where I might look.
The logged data leading up to the first message are:
[ 3.002762] hub 4-0:1.0: USB hub found
[ 3.002780] hub 4-0:1.0: 5 ports detected
[ 3.088286] ehci_hcd 0000:00:02.1: usb: Entered check_reset_complete with
port_status 0x1005
[ 3.088433] ehci_hcd 0000:00:02.1: port 4 high speed
[ 3.144061] usb 1-4: new high speed USB device using ehci_hcd and address 2
[ 3.200286] ehci_hcd 0000:00:02.1: usb: Entered check_reset_complete with
port_status 0x1005
[ 3.200437] ehci_hcd 0000:00:02.1: port 4 high speed
[ 3.352298] ehci_hcd 0000:00:02.1: usb: Entered check_reset_complete with
port_status 0x1005
[ 3.352304] ehci_hcd 0000:00:02.1: port 5 high speed
[ 3.408071] usb 1-5: new high speed USB device using ehci_hcd and address 3
[ 3.454449] PM: Starting manual resume from disk
[ 3.464305] ehci_hcd 0000:00:02.1: usb: Entered check_reset_complete with
port_status 0x1005
[ 3.464449] ehci_hcd 0000:00:02.1: port 5 high speed
[ 3.600052] ehci_hcd 0000:00:04.1: usb: Entered check_reset_complete with
port_status 0x1001
[ 3.600202] ehci_hcd 0000:00:04.1: port 5 full speed --> companion
[ 3.600307] ehci_hcd 0000:00:04.1: Wrote 0x3001 to status reg
[ 3.656089] hub 2-0:1.0: unable to enumerate USB device on port 5
[ 3.656203] ehci_hcd 0000:00:04.1: In ehci_relinquish_port
[ 3.656295] ehci_hcd 0000:00:04.1: In set_owner
Thanks,
Larry
next prev parent reply other threads:[~2010-12-11 0:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 18:20 Larry Finger
2010-11-03 21:04 ` Alan Stern
2010-11-04 1:10 ` Larry Finger
2010-11-04 14:41 ` Alan Stern
2010-12-11 0:17 ` Larry Finger [this message]
[not found] <AANLkTikgzdggq4HdBiS7M_6qs1vKbZRkbR70Y=m2JxVu@mail.gmail.com>
2010-11-12 22:02 ` Alan Stern
[not found] <4D03AACB.8020205@lwfinger.net>
2010-12-11 19:47 ` Alan Stern
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=4D02C336.707@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=stern@rowland.harvard.edu \
/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
Powered by JetHome