Hi,

Alan Stern wrote:
> Below is a patch that adds two 5000ms delays to the hub driver, one in 
> hub_port_reset() and one in hub_port_connect_change().  This patch is 
> meant to apply on top of the previous one.  I'm not sure where the delay 
> needs to be (assuming it's needed at all!) so I put it in the two most 
> likely spots.  Also I'm not sure how long the delay needs to be; I figured 
> that if five seconds wasn't enough then probably nothing would work.
> 
> If your cameras work with this patch, you could try removing one delay or
> the other to see which one is really necessary.  You can also try reducing
> the length of the delay to see how long it really should be.

I have tried this patch and a few variants with diffrent delays. The camera
has not been recoginzed, but I see some diffrences in the later part of
the debug messages (I looked for "Stalled" and "Active"). In same cases
I did not see "Element != First TD" in the debug messages. I don't know
if this is of any interest.

Here are the tests I made. I include only a few lines of the debug
messages. I can post complete debug messages if requested.

Test #1
Sleep in hub_port_reset() is msleep(5000)
Sleep in hub_port_connect_change() is msleep(5000)
Debug messages:
usb 1-2: new full speed USB device using address 3
uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000
[cedfd240] link (0edfd1e2) element (0ef72080)
 Element != First TD
  0: [cef72040] link (0ef72080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) 
(buf=0ab40c28)
  1: [cef72080] link (0ef720c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=3f DT1 
EndPt=0 Dev=0, PID=69(IN) (buf=0ead85d4)
  2: [cef720c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, 
PID=e1(OUT) (buf=00000000)
Comment: Message "USB connection error" on camera display

Test #2
Sleep in hub_port_reset() is msleep(1000)
Sleep in hub_port_connect_change() is msleep(1000)
Debug messages:
usb 1-2: new full speed USB device using address 3
usb 1-2: control timeout on ep0in
uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000
[cef75240] link (0ef751e2) element (0ed92040)
  0: [ced92040] link (0ed92080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 
Dev=0, PID=2d(SETUP) (buf=0fd81a68)
  1: [ced92080] link (0ed920c0) e3 SPD Active Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, 
PID=69(IN) (buf=0f07a254)
  2: [ced920c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, 
PID=e1(OUT) (buf=00000000)
Comment: I don't see "Element != First TD" in the debug messages
         "Active" seen on two lines here.
         Message "USB connection error" on camera display

Test #3
Sleep in hub_port_reset() is msleep(200)
Sleep in hub_port_connect_change() is msleep(200)
Debug messages:
usb 1-2: new full speed USB device using address 3
usb 1-2: control timeout on ep0in
uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000
[ceaf9240] link (0eaf91e2) element (0eafe080)
 Element != First TD
  0: [ceafe040] link (0eafe080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) 
(buf=0fd819e8)
  1: [ceafe080] link (0eafe0c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=3f DT1 
EndPt=0 Dev=0, PID=69(IN) (buf=0ec28b94)
  2: [ceafe0c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, 
PID=e1(OUT) (buf=00000000)

Test #4
Sleep in hub_port_reset() is msleep(1000)
Sleep in hub_port_connect_change() is commented out
Debug messages:
usb 1-2: new full speed USB device using address 3
usb 1-2: control timeout on ep0in
uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000
[ceaec240] link (0eaec1e2) element (0eaa9040)
  0: [ceaa9040] link (0eaa9080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 
Dev=0, PID=2d(SETUP) (buf=0ea09f48)
  1: [ceaa9080] link (0eaa90c0) e3 SPD Active Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, 
PID=69(IN) (buf=0eb1b154)
  2: [ceaa90c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, 
PID=e1(OUT) (buf=00000000)
Comment: I don't see "Element != First TD" in debug messages
         "Active" seen on two lines

Test #5
Sleep in hub_port_reset() is msleep(5000)
Sleep in hub_port_connect_change() is commented out
Debug messages:
usb 1-2: new full speed USB device using address 3
uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000
[ceb49240] link (0eb491e2) element (0eb4e080)
 Element != First TD
  0: [ceb4e040] link (0eb4e080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) 
(buf=0b010a08)
  1: [ceb4e080] link (0eb4e0c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=3f DT1 
EndPt=0 Dev=0, PID=69(IN) (buf=0680ce54)
  2: [ceb4e0c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, 
PID=e1(OUT) (buf=00000000)

Test#6
Sleep in hub_port_reset() is commented out
Sleep in hub_port_connect_change() is msleep(5000)
Debug messages:
usb 1-2: new full speed USB device using address 3
usb 1-2: control timeout on ep0in
uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000
[ceb96240] link (0eb961e2) element (0eac3080)
 Element != First TD
  0: [ceac3040] link (0eac3080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) 
(buf=0e9f9368)
  1: [ceac3080] link (0eac30c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=3f DT1 
EndPt=0 Dev=0, PID=69(IN) (buf=0122f994)
  2: [ceac30c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, 
PID=e1(OUT) (buf=00000000)

Test #7
Sleep in hub_port_reset() is commented out
Sleep in hub_port_connect_change() is msleep(1000)
Debug messages:
usb 1-2: new full speed USB device using address 3
usb 1-2: control timeout on ep0in
uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000
[cee6d240] link (0ee6d1e2) element (0ee72080)
 Element != First TD
  0: [cee72040] link (0ee72080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) 
(buf=0e9ffae8)
  1: [cee72080] link (0ee720c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=3f DT1 
EndPt=0 Dev=0, PID=69(IN) (buf=0ec4c314)
  2: [cee720c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, 
PID=e1(OUT) (buf=00000000)

Regards,
Sven-Olof



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to