Bug 8977 - after update from 2.6.20 to 2.6.21 or higher usb doesn't work
Summary: after update from 2.6.20 to 2.6.21 or higher usb doesn't work
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks: USB
  Show dependency tree
 
Reported: 2007-09-03 19:12 UTC by hansen12345
Modified: 2008-02-11 01:20 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.21 or higher
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
kern.log (25.10 KB, text/plain)
2007-09-03 19:13 UTC, hansen12345
Details
lspci (6.08 KB, text/plain)
2007-09-03 19:19 UTC, hansen12345
Details
usbmo modem and mouse (9.02 KB, text/plain)
2007-09-04 16:25 UTC, hansen12345
Details
usbmon mouse alone (2.42 KB, text/plain)
2007-09-04 16:26 UTC, hansen12345
Details
usbmon dsl modem alone (5.46 KB, text/plain)
2007-09-04 16:27 UTC, hansen12345
Details
usbmon mouse 2.6.20 (2.96 KB, text/plain)
2007-09-06 14:56 UTC, hansen12345
Details
git bisection (1.17 KB, text/plain)
2007-09-12 09:41 UTC, hansen12345
Details

Description hansen12345 2007-09-03 19:12:56 UTC
hello,
after update the kernel version from 2.6.20 to 2.6.21 or higher the usb connector doesn't work.
when i start kernel 2.6.21 or 2.6.23-rc4, the loading stop for four or five seconds with a message: "usb can`t set config #0, error -110".
the system starts nevertheless but not usb device is recognised.

i have build the kernel 2.6.23-rc4 with CONFIG_USB_DEBUG on for a better logfile.
Comment 1 hansen12345 2007-09-03 19:13:57 UTC
Created attachment 12687 [details]
kern.log
Comment 2 hansen12345 2007-09-03 19:19:22 UTC
Created attachment 12688 [details]
lspci
Comment 3 Anonymous Emailer 2007-09-03 20:07:13 UTC
Reply-To: akpm@linux-foundation.org

> On Mon,  3 Sep 2007 19:12:56 -0700 (PDT) bugme-daemon@bugzilla.kernel.org
> wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=8977
> 
>            Summary: after update from 2.6.20 to 2.6.21 or higher usb doesn't
>                     work
>            Product: Other
>            Version: 2.5
>      KernelVersion: 2.6.21 or higher
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>         AssignedTo: other_other@kernel-bugs.osdl.org
>         ReportedBy: hansen12345@gmx.de
> 
> 
> hello,
> after update the kernel version from 2.6.20 to 2.6.21 or higher the usb
> connector doesn't work.
> when i start kernel 2.6.21 or 2.6.23-rc4, the loading stop for four or five
> seconds with a message: "usb can`t set config #0, error -110".
> the system starts nevertheless but not usb device is recognised.
> 
> i have build the kernel 2.6.23-rc4 with CONFIG_USB_DEBUG on for a better
> logfile.
> 
> 
> -- 
> Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
Comment 4 Alan Stern 2007-09-04 07:40:03 UTC
It looks like a problem in your USB device, not a problem in the kernel.  Does the device still work if you boot 2.6.20?

If you want to get more information, use the usbmon facility.  Instructions are in the kernel source file Documentation/usb/usbmon.txt.  Start the usbmon monitoring before you plug in the device, and attach the output to this bug report.
Comment 5 hansen12345 2007-09-04 16:24:40 UTC
(In reply to comment #4)
> It looks like a problem in your USB device, not a problem in the kernel. 
> Does
> the device still work if you boot 2.6.20?
> 

thanks for the answer,
yes, the usb works with kernel 2.6.20 and lower.


a new discovery:

when the system boot and my two usb devices are connected, not any usb device works.
when I boot without usb devices and then plug in at first the usb "dsl modem" and then the usb mouse, all devices work perfectly.
but, when I at first connect or alone the usb mouse, then no usb device works more.
Comment 6 hansen12345 2007-09-04 16:25:35 UTC
Created attachment 12704 [details]
usbmo modem and mouse
Comment 7 hansen12345 2007-09-04 16:26:34 UTC
Created attachment 12705 [details]
usbmon mouse alone
Comment 8 hansen12345 2007-09-04 16:27:15 UTC
Created attachment 12706 [details]
usbmon dsl modem alone
Comment 9 Alan Stern 2007-09-05 13:40:04 UTC
The usbmon logs show clearly that the mouse doesn't work right.  The two logs in comments #6 and #7 show the mouse generating a babble response (error -75).  But then they differ: The first log shows the mouse generating another error and then it starts working, whereas the second log shows no more data from the mouse at all.

Can you attach a similar usbmon log, for just the mouse alone, under 2.6.20?

Have you tried plugging the mouse into different ports?
Comment 10 hansen12345 2007-09-06 14:55:08 UTC
(In reply to comment #9)
> Have you tried plugging the mouse into different ports?
>

Yes, I have tried another usb port but without success.
Comment 11 hansen12345 2007-09-06 14:56:09 UTC
Created attachment 12746 [details]
usbmon mouse 2.6.20
Comment 12 Alan Stern 2007-09-07 08:10:42 UTC
That is strange.  Under 2.6.20, the mouse alone behaved exactly the same way as it did when the modem was also attached under 2.6.23.  There's no obvious reason why it didn't behave the same when it was the only device attached under 2.6.23; the computer sent exactly the same data to the mouse in each case.

If you're really curious to find out the reason, you'll have to install Git and do a bisection between kernel versions 2.6.20 and 2.6.21 to find which patch caused the change in the mouse's behavior.

If you don't want to go to all that trouble then you should just get another mouse.  It's quite clear that this one doesn't work right.  For example, even under 2.6.20 the log shows that it sends an invalid response to a Get-String-Descriptor request, and its bConfigurationValue is set to 0 (which is illegal).

On the bright side, at least you know that the computer's USB connector _does_ work under 2.6.23, because the modem is okay.  Only the mouse is broken.
Comment 13 hansen12345 2007-09-12 09:39:57 UTC
I installed the programm git and did the bisection.
the result of the search is shown in the attachment.

I was surprised that you were the hero who changed the relevant patches:

17230acdc71137622ca7dfd789b3944c75d39404 is first bad commit
commit 17230acdc71137622ca7dfd789b3944c75d39404
Author: Alan Stern <stern@rowland.harvard.edu>
Date:   Mon Feb 19 15:52:45 2007 -0500

My question is, how to use my "old" mouse for version 2.6.21 and higher?
Comment 14 hansen12345 2007-09-12 09:41:15 UTC
Created attachment 12806 [details]
git bisection
Comment 15 Alan Stern 2007-09-12 11:39:50 UTC
I certainly admire the persistence and energy you have put into tracking this down!

Yes, I wrote that patch.  It did turn out to have an error, and a later patch was added to fix it:

  commit e009f1b202219c62ea7e277adbb953d703dac983
  UHCI: Fix problem caused by lack of terminating QH

Do you still see your mouse problem if you apply this commit on top of the other one?  I still can't tell exactly what the problem is, but at least now we know where to look.

By the way, have you tried borrowing another mouse to see if it works any better?  Even without the problems caused by these patches, the mouse itself doesn't behaving correctly.
Comment 16 Natalie Protasevich 2007-11-07 11:56:32 UTC
Hansen, do you have any update on this, have you had chance for testing as suggested in #15?
Thanks.
Comment 17 Natalie Protasevich 2008-02-04 14:36:15 UTC
Pinging the reporter again... any news from your side, have you tried Alan's recommendations in #15?
Comment 18 Natalie Protasevich 2008-02-11 01:20:25 UTC
I'm afraid I have to close this bug due to inactivity of the reporter. Besides Alan has fixed the bug anyway.
Hansen, you're welcome to reopen the bug if this is still a problem for you.
thanks.

Note You need to log in before you can comment on or make changes to this bug.