Alan Stern wrote:
This was in the original patch for the 2.4 kernels as well. I added it back in.On Wed, 23 Jun 2004, Tommy Faasen wrote:
Why, the buffer isn't used anyway? It's just used to jumpstart some usb devices?That patch does DMA on the stack. Maybe including such a patch is a good idea, following the other OS. But it'll require a kmalloced buffer.
Wrong. It's true that the subroutine itself doesn't use the buffer. But it passes the buffer to usb_control_msg(), which does use it -- the descriptor data from the device is stored there.
There's a simpler way to get an equivalent effect. Temporarily set dev->devnum to 0 and call usb_get_device_descriptor(). But this won't help solve your problem any more than the old patch did.
I increased the delay to 100 milliseconds but unfortunatly without any luck, the output again belowOne thing you might try doing is to change the
msleep(10);
just before hub_port_init() calls usb_get_device_descriptor() for the first time, and make it use a longer delay. Maybe with 100 milliseconds breathing space instead of 10 the device will work better.
Alan Stern
If it's not to much trouble could you or anybody explain what goes wrong in the following excerpt
uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000
[e6aa8240] link (26aa81e2) element (26aa7040)
0: [e6aa7040] link (26aa7080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=2661c208)
1: [e6aa7080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000)
The full output:
uhci_hcd 0000:00:07.2: port 1 portsc 01a9
uhci_hcd 0000:00:07.2: port 1 portsc 01a9
hub 1-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x301
usb 1-1: new low speed USB device using address 2
usb 1-1: skipped 1 descriptor after interface
usb 1-1: new device strings: Mfr=4, Product=32, SerialNumber=0
usb 1-1: default language 0x0409
usb 1-1: Product: WingMan Gamepad
usb 1-1: Manufacturer: Logitech Inc.
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
uhci_hcd 0000:00:07.2: port 2 portsc 009b
hub 1-0:1.0: port 2, status 0101, change 0003, 12 Mb/s
uhci_hcd 0000:00:07.2: port 2 portsc 0099
uhci_hcd 0000:00:07.2: port 2 portsc 0099
uhci_hcd 0000:00:07.2: port 2 portsc 0099
uhci_hcd 0000:00:07.2: port 2 portsc 0099
uhci_hcd 0000:00:07.2: port 2 portsc 0099
hub 1-0:1.0: debounce: port 2: delay 100ms stable 4 status 0x101
usb 1-2: new full speed USB device using address 3
uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000
[e6aa8240] link (26aa81e2) element (26aa7040)
0: [e6aa7040] link (26aa7080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=26a8ba08)
1: [e6aa7080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000)
uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000
[e6aa8240] link (26aa81e2) element (26aa7040)
0: [e6aa7040] link (26aa7080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=26a8ba08)
1: [e6aa7080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000)
usb 1-2: device not accepting address 3, error -71
usb 1-2: new full speed USB device using address 4
uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000
[e6aa8240] link (26aa81e2) element (26aa7040)
0: [e6aa7040] link (26aa7080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=2661c208)
1: [e6aa7080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000)
uhci_hcd 0000:00:07.3: suspend_hc
uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel