Hi Alan, I'm afraid, that even the delays did not help. I attached the log of the latest tests and a patch agains hub.c from 2.6.8-rc2 sources (I had to apply your patches manually and hope that I didn't miss anything)... I'm also willing to go back to 2.6.7 if needed. Please don't hesitate to ask for more tests.
Thanks, Gerhard On Sunday 25 July 2004 18:20, Alan Stern wrote: > On Sat, 24 Jul 2004, Martin Pohlack wrote: > > The patch applies flawlessly, however does not seem to have any positive > > effect regarding the "dimage a2". > > > > The kernel's log-output is as follows: > > > > Jul 24 23:30:13 monat usb 2-2: new full speed USB device using address 2 > > Jul 24 23:30:18 monat usb 2-2: control timeout on ep0in > > Jul 24 23:30:18 monat usb 2-2: device not accepting address 2, error -71 > > Jul 24 23:30:18 monat usb 2-2: new full speed USB device using address 3 > > Jul 24 23:30:23 monat usb 2-2: control timeout on ep0in > > On Sat, 24 Jul 2004, Gerhard Jaeger wrote: > > here's the requested log, according to the last one, something changed > > but it wasn't fully succesful... > > On Sun, 25 Jul 2004, Sven-Olof Klasson wrote: > > Below are the debug messages I got when I connected my KonicaMinolta > > DiMAGE A2 digital camera. Linux did not recognize the camera. > > Thanks to all of you for your testing. Although the patch seems to have > worked as intended, the DiMAGE A2 still doesn't respond. Take heart > though; from the logs it's clear that the patch did help a tiny little > bit. The first time through the initialization loop, using address 2 and > the unpatched part of the code, the cameras failed to respond to the very > first packet. The second time through the loop, using address 3 and the > newly patched code, the cameras _did_ respond to that packet -- but then > failed to respond to the second packet! > > I get a definite impression that the camera wants some time to "warm up" > before it will respond properly. Although that's just a guess, it won't > hurt to try and test it. > > 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. > > Alan Stern
hub-2.6.8-rc2.diff.bz2
Description: BZip2 compressed data
Jul 25 19:55:03 laeppi kernel: usbcore: Unknown parameter `uhci_hcd' Jul 25 19:55:03 laeppi kernel: usbcore: registered new driver usbfs Jul 25 19:55:03 laeppi kernel: usbcore: registered new driver hub Jul 25 19:56:08 laeppi kernel: USB Universal Host Controller Interface driver v2.2 Jul 25 19:56:08 laeppi kernel: PCI: Found IRQ 11 for device 0000:00:07.2 Jul 25 19:56:08 laeppi kernel: uhci_hcd 0000:00:07.2: Intel Corp. 82371AB/EB/MB PIIX4 USB Jul 25 19:56:08 laeppi kernel: uhci_hcd 0000:00:07.2: irq 11, io base 00001860 Jul 25 19:56:08 laeppi kernel: uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1 Jul 25 19:56:08 laeppi kernel: uhci_hcd 0000:00:07.2: detected 2 ports Jul 25 19:56:08 laeppi kernel: usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1 Jul 25 19:56:08 laeppi kernel: usb usb1: default language 0x0409 Jul 25 19:56:08 laeppi kernel: usb usb1: Product: Intel Corp. 82371AB/EB/MB PIIX4 USB Jul 25 19:56:08 laeppi kernel: usb usb1: Manufacturer: Linux 2.6.8-rc2 uhci_hcd Jul 25 19:56:08 laeppi kernel: usb usb1: SerialNumber: 0000:00:07.2 Jul 25 19:56:08 laeppi kernel: usb usb1: hotplug Jul 25 19:56:08 laeppi kernel: usb usb1: adding 1-0:1.0 (config #1, interface 0) Jul 25 19:56:08 laeppi kernel: usb 1-0:1.0: hotplug Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: usb_probe_interface Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: usb_probe_interface - got id Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: USB hub found Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: 2 ports detected Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: standalone hub Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: no power switching (usb 1.0) Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: individual port over-current protection Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: power on to power good time: 2ms Jul 25 19:56:08 laeppi kernel: hub 1-0:1.0: local power source is good Jul 25 19:56:10 laeppi kernel: uhci_hcd 0000:00:07.2: suspend_hc Jul 25 19:56:21 laeppi kernel: uhci_hcd 0000:00:07.2: wakeup_hc Jul 25 19:56:21 laeppi kernel: uhci_hcd 0000:00:07.2: port 1 portsc 0083 Jul 25 19:56:21 laeppi kernel: hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s Jul 25 19:56:21 laeppi kernel: hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101 Jul 25 19:56:29 laeppi kernel: usb 1-1: new full speed USB device using address 2 Jul 25 19:56:34 laeppi kernel: usb 1-1: control timeout on ep0in Jul 25 19:56:34 laeppi kernel: uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 Jul 25 19:56:34 laeppi kernel: [cb0d9240] link (0b0d91e2) element (0b0d8040) Jul 25 19:56:34 laeppi kernel: 0: [cb0d8040] link (0b0d8080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0761cc80) Jul 25 19:56:34 laeppi kernel: 1: [cb0d8080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) Jul 25 19:56:34 laeppi kernel: Jul 25 19:56:34 laeppi kernel: uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 Jul 25 19:56:34 laeppi kernel: [cb0d9240] link (0b0d91e2) element (0b0d8040) Jul 25 19:56:34 laeppi kernel: 0: [cb0d8040] link (0b0d8080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0761cc80) Jul 25 19:56:34 laeppi kernel: 1: [cb0d8080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) Jul 25 19:56:34 laeppi kernel: Jul 25 19:56:35 laeppi kernel: usb 1-1: device not accepting address 2, error -71 Jul 25 19:56:39 laeppi kernel: usb 1-1: new full speed USB device using address 3 Jul 25 19:56:42 laeppi kernel: uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 Jul 25 19:56:42 laeppi kernel: [cb0d9240] link (0b0d91e2) element (0b0d8080) Jul 25 19:56:42 laeppi kernel: Element != First TD Jul 25 19:56:42 laeppi kernel: 0: [cb0d8040] link (0b0d8080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=06d1d1e0) Jul 25 19:56:42 laeppi kernel: 1: [cb0d8080] link (0b0d80c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN) (buf=013f60e0) Jul 25 19:56:42 laeppi kernel: 2: [cb0d80c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000) Jul 25 19:56:42 laeppi kernel: Jul 25 19:56:43 laeppi kernel: uhci_hcd 0000:00:07.2: suspend_hc Jul 25 19:58:08 laeppi gja: ########### next trial ############ Jul 25 19:58:19 laeppi kernel: uhci_hcd 0000:00:07.2: wakeup_hc Jul 25 19:58:19 laeppi kernel: uhci_hcd 0000:00:07.2: port 1 portsc 0083 Jul 25 19:58:19 laeppi kernel: hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s Jul 25 19:58:19 laeppi kernel: hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101 Jul 25 19:58:27 laeppi kernel: usb 1-1: new full speed USB device using address 4 Jul 25 19:58:32 laeppi kernel: usb 1-1: control timeout on ep0in Jul 25 19:58:32 laeppi kernel: uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 Jul 25 19:58:32 laeppi kernel: [cb0d9240] link (0b0d91e2) element (0b0d8040) Jul 25 19:58:32 laeppi kernel: 0: [cb0d8040] link (0b0d8080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=06d1d1e0) Jul 25 19:58:32 laeppi kernel: 1: [cb0d8080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) Jul 25 19:58:32 laeppi kernel: Jul 25 19:58:32 laeppi kernel: uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 Jul 25 19:58:32 laeppi kernel: [cb0d9240] link (0b0d91e2) element (0b0d8040) Jul 25 19:58:32 laeppi kernel: 0: [cb0d8040] link (0b0d8080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0ef5b460) Jul 25 19:58:32 laeppi kernel: 1: [cb0d8080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) Jul 25 19:58:32 laeppi kernel: Jul 25 19:58:32 laeppi kernel: usb 1-1: device not accepting address 4, error -71 Jul 25 19:58:36 laeppi kernel: usb 1-1: new full speed USB device using address 5 Jul 25 19:58:40 laeppi kernel: uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 Jul 25 19:58:40 laeppi kernel: [cb0d9240] link (0b0d91e2) element (0b0d8080) Jul 25 19:58:40 laeppi kernel: Element != First TD Jul 25 19:58:40 laeppi kernel: 0: [cb0d8040] link (0b0d8080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0ca87f80) Jul 25 19:58:40 laeppi kernel: 1: [cb0d8080] link (0b0d80c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN) (buf=0ffe43a0) Jul 25 19:58:40 laeppi kernel: 2: [cb0d80c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000) Jul 25 19:58:40 laeppi kernel: Jul 25 19:58:41 laeppi kernel: uhci_hcd 0000:00:07.2: suspend_hc Jul 25 19:59:00 laeppi /USR/SBIN/CRON[7769]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
