Alan Stern wrote: > In the meantime, there are two new patches below. The first is a > replacement for the earlier UHCI driver patch. It should do about the > same thing, but this one is suitable for submission (unlike the other, > which was purely experimental). The second patch is for usb-storage; it > should fix the problem you saw. Although it's really another error in the > camera...
I applied these patches on a clean 2.6.7 tree. With these patches the camera is sometimes recognized by Linux. It does not allways work. Below is a example where Linux recognized the camera on the 4th attempt. After that I can start to copy files. Coping files seems to work fine as long as I dont issue any dmesg commands. It has happend to me twice when I run tests with these patches that exactly when I issue a dmesg command the file copy fails. See the debug messages below. It does not fail allways when I issue dmesg commands. It works mostly. I estimate it fails on 1 of 20 dmesg commands (based on my very limited testing so far). The kernel I used has USB_STORAGE_DEBUG=n. Let me know if it would be interesting to try with USB_STORAGE_DEBUG=y. Regards, Sven-Olof ==> Powered the camera on for the first time uhci_hcd 0000:00:1f.2: wakeup_hc uhci_hcd 0000:00:1f.2: port 1 portsc 0083 hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s hub 1-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x101 usb 1-1: new full speed USB device using address 2 usb 1-1: control timeout on ep0in uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983c28) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983c28) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) usb 1-1: device not accepting address 2, error -71 usb 1-1: new full speed USB device using address 3 usb 1-1: control timeout on ep0in uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983688) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983908) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) usb 1-1: device not accepting address 3, error -71 uhci_hcd 0000:00:1f.2: port 1 portsc 0082 hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s uhci_hcd 0000:00:1f.2: suspend_hc ==> Powered the camera off, then on again the second time uhci_hcd 0000:00:1f.2: wakeup_hc uhci_hcd 0000:00:1f.2: port 1 portsc 0083 hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s hub 1-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x101 usb 1-1: new full speed USB device using address 4 usb 1-1: control timeout on ep0in uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983d48) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0f0976a8) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) usb 1-1: device not accepting address 4, error -71 usb 1-1: new full speed USB device using address 5 usb 1-1: control timeout on ep0in uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983a68) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983a68) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) usb 1-1: device not accepting address 5, error -71 uhci_hcd 0000:00:1f.2: port 1 portsc 0082 hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s uhci_hcd 0000:00:1f.2: suspend_hc ==> Powered the camera off, then on again the third time uhci_hcd 0000:00:1f.2: wakeup_hc uhci_hcd 0000:00:1f.2: port 1 portsc 0083 hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s hub 1-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x101 usb 1-1: new full speed USB device using address 6 usb 1-1: control timeout on ep0in uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983d48) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983d48) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) usb 1-1: device not accepting address 6, error -71 usb 1-1: new full speed USB device using address 7 usb 1-1: control timeout on ep0in uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983a68) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) uhci_hcd 0000:00:1f.2: uhci_result_control: failed with status 440000 [ced93240] link (0ed931b2) element (0ec80040) 0: [cec80040] link (0ec80080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0e983a68) 1: [cec80080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000) usb 1-1: device not accepting address 7, error -71 uhci_hcd 0000:00:1f.2: port 1 portsc 0082 hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s uhci_hcd 0000:00:1f.2: suspend_hc uhci_hcd 0000:00:1f.2: port 1 portsc 0083 hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s ==> Powered the camera off, then on again the forth time uhci_hcd 0000:00:1f.2: wakeup_hc hub 1-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x101 usb 1-1: new full speed USB device using address 8 usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-1: default language 0x0409 usb 1-1: Product: DIMAGE CAMERA usb 1-1: Manufacturer: KONICA MINOLTA usb 1-1: hotplug usb 1-1: adding 1-1:1.0 (config #1, interface 0) usb 1-1:1.0: hotplug SCSI subsystem initialized Initializing USB Mass Storage driver... usb-storage 1-1:1.0: usb_probe_interface usb-storage 1-1:1.0: usb_probe_interface - got id scsi0 : SCSI emulation for USB Mass Storage devices Vendor: KMCA Model: DIMAGE CAMERA Rev: 1.00 Type: Direct-Access ANSI SCSI revision: 02 USB Mass Storage device found at 8 usbcore: registered new driver usb-storage USB Mass Storage support registered. SCSI device sda: 7999488 512-byte hdwr sectors (4096 MB) sda: assuming Write Enabled sda: assuming drive cache: write through sda: sda1 Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 ==> At this point I mounted /dev/sda1 and started to copy files from the cam. ==> I issued a few dmesg commands without any problems while files were beeing ==> copied, then something happend. ==> This happened exactly when I issued a dmesg command. uhci_hcd 0000:00:1f.2: port 1 portsc 008a hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s usb 1-1: USB disconnect, address 8 usb 1-1: usb_disable_device nuking all URBs usb 1-1: unregistering interface 1-1:1.0 scsi0 (0:0): rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 15649 lost page write due to I/O error on sda1 scsi0 (0:0): rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 1134322 lost page write due to I/O error on sda1 scsi0 (0:0): rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 812290 Buffer I/O error on device sda1, logical block 812291 Buffer I/O error on device sda1, logical block 812292 ... lots of similar lines .... ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel