On Thursday 07 October 2004 11:21am, Alan Stern wrote:
> On Wed, 6 Oct 2004, Marr wrote:
> > If there's anything else that needs to be tested, please let me know.
>
> Make sure that you have turned on the USB debugging option in the kernel
> configuration.  Then post the dmesg output showing what happens when you
> try to plug in a normally working device and when you try to plug in the
> TRV38 (that's with both patches).  Just for good luck, include also the
> dmesg output showing what happens when you plug in a working device
> using the vanilla driver.
>
> Maybe comparing the different debugging logs will provide some ideas.

On Thursday 07 October 2004 02:24pm, Alan Stern wrote:
> Well, looking through the new patch I see two mistakes.  One is
> unimportant but the other could be crucial.  Below is an updated version
> of the patch.  It contains both the original 2.6.8.1 patch (with the
> mistakes fixed) and the extra little diagnostic patch.
>
> Apply this to a vanilla kernel and see if it works better this time.

Alan (et al),

Sorry again for the lateness of this testing, but here's some data from my 
Sony DCR-TRV38 camcorder. It seems to confirm what the others already 
discovered: the new patch seems to work much better (as long as the 
Windows-style initialization is done first).

Here's the pertinent 'dmesg' output (with USB debugging enabled):

------------------------------

Vanilla 2.6.8.1 kernel, after plugging in a USB modem:

usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: default language 0x0009
usb 1-1: Product: Atlas Modem Board
usb 1-1: Manufacturer: Multi-Tech Systems, Inc.
usb 1-1: SerialNumber: 00000000
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
usb 1-1: adding 1-1:1.1 (config #1, interface 1)
usb 1-1:1.1: hotplug

------------------------------

2.6.8.1 kernel with 1st patch (Windows-style init 1st), after plugging in a 
USB modem:

uhci_hcd 0000:00:04.2: wakeup_hc
uhci_hcd 0000:00:04.2: port 1 portsc 0093
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 1-1: new full speed USB device using address 2
Init get-descr: 8, maxpacket 8
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: default language 0x0009
usb 1-1: Product: Atlas Modem Board
usb 1-1: Manufacturer: Multi-Tech Systems, Inc.
usb 1-1: SerialNumber: 00000000
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
usb 1-1: adding 1-1:1.1 (config #1, interface 1)
usb 1-1:1.1: hotplug

------------------------------

2.6.8.1 kernel with 1st patch (Windows-style init 1st), after plugging in Sony 
DCR-TRV38 camcorder:

uhci_hcd 0000:00:04.2: port 2 portsc 0093
hub 1-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 1-2: new full speed USB device using address 3
Init get-descr: 18, maxpacket 64
usb 1-2: skipped 3 descriptors after interface
usb 1-2: skipped 2 descriptors after interface
usb 1-2: skipped 1 descriptor after endpoint
usb 1-2: new device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-2: hotplug
usb 1-2: adding 1-2:1.0 (config #1, interface 0)
usb 1-2:1.0: hotplug
usb 1-2: adding 1-2:1.1 (config #1, interface 1)
usb 1-2:1.1: hotplug
usb 1-2: adding 1-2:1.2 (config #1, interface 2)
usb 1-2:1.2: hotplug

------------------------------

2.6.8.1 kernel with 1st and 2nd patches (Linux-style init 1st), after plugging 
in a USB modem:

uhci_hcd 0000:00:04.2: port 1 portsc 0093
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
uhci_hcd 0000:00:04.2: wakeup_hc
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 1-1: new full speed USB device using address 2
uhci_hcd 0000:00:04.2: uhci_result_control: failed with status 440000
[cf793240] link (0f7931e2) element (0f792040)
  0: [cf792040] link (0f792080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 
EndPt=0 Dev=0, PID=2d(SETUP) (buf=0f827780)
  1: [cf792080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 
Dev=0, PID=69(IN) (buf=00000000)

usb 1-1: control timeout on ep0in
usb 1-1: unable to read config index 0 descriptor/all
usb 1-1: can't read configurations, error -110
usb 1-1: new full speed USB device using address 3
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: default language 0x0009
usb 1-1: Product: Atlas Modem Board
usb 1-1: Manufacturer: Multi-Tech Systems, Inc.
usb 1-1: SerialNumber: 00000000
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
usb 1-1: adding 1-1:1.1 (config #1, interface 1)
usb 1-1:1.1: hotplug

------------------------------

2.6.8.1 kernel with 1st and 2nd patches (Linux-style init 1st), after plugging 
in Sony DCR-TRV38 camcorder:

uhci_hcd 0000:00:04.2: port 2 portsc 0093
hub 1-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 1-2: new full speed USB device using address 4
uhci_hcd 0000:00:04.2: uhci_result_control: failed with status 500000
[cf793240] link (0f7931e2) element (09be2040)
 Element != First TD
  0: [c9be2000] link (09be2040) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=4, 
PID=2d(SETUP) (buf=0f8274c0)
  1: [c9be2040] link (09be2080) e3 Stalled Babble Length=7 MaxLen=7 DT1 
EndPt=0 Dev=4, PID=69(IN) (buf=0f827d00)
  2: [c9be2080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 
Dev=4, PID=e1(OUT) (buf=00000000)

usb 1-2: control timeout on ep0out
usb 1-2: control timeout on ep0out
usb 1-2: device not accepting address 4, error -110
usb 1-2: new full speed USB device using address 5
usb 1-2: control timeout on ep0out
usb 1-2: control timeout on ep0out
usb 1-2: device not accepting address 5, error -110
usb 1-2: new full speed USB device using address 6
usb 1-2: control timeout on ep0in
Init get-descr: -110, maxpacket 0
usb 1-2: control timeout on ep0in
Init get-descr: -110, maxpacket 0
usb 1-2: device descriptor read/8, error -90
usb 1-2: new full speed USB device using address 7
usb 1-2: control timeout on ep0in
Init get-descr: -110, maxpacket 0
usb 1-2: control timeout on ep0in
Init get-descr: -110, maxpacket 0
usb 1-2: device descriptor read/8, error -90

------------------------------

I also captured the output of '/var/log/messages', 'lsusb', and 'cat /proc/
bus/usb/devices' for all the permutations of kernels (vanilla 2.6.8.1, 2681
+patch1, and 2681+patches1&2) and USB device pluggings (no devices, USB modem 
only, and USB modem with camcorder). If any of that data is useful, let me 
know and I'll send it.

Clearly the '/var/log/messages' file shows that the best condition was 
achieved with 2.6.8.1 with the first patch only (Windows-style init first):

----------

Oct  8 18:57:18 w6 kernel: usb 1-2: new full speed USB device using address 3
Oct  8 18:57:18 w6 kernel: Init get-descr: 18, maxpacket 64
Oct  8 18:57:20 w6 usb.agent[2173]: ... no modules for USB product 54c/c0/100
Oct  8 18:57:20 w6 usb.agent[2185]: ... no modules for USB product 54c/c0/100
Oct  8 18:57:20 w6 usb.agent[2192]: ... no modules for USB product 54c/c0/100

----------

If there are other tests to run, please let me know.

Bill Marr



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to