Alan Stern wrote: > > 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. > > There's absolutely no reason that dmesg should cause a file transfer to > fail. > > > 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). > > Either it's a coincidence or else something even stranger is going on...
I have made several attempts to reproduce this problem, but I have not seen this problem any more. I can't explain what happended the two times I did see a problem. I suggest we ignore this. > > 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. > > It beats me what could be going on here. Maybe it's a strange timing > issue, maybe something else. Can you try attaching the camera to a > different computer to see if it works any better? Just for variety, try > using one with an OHCI USB controller if you can. I have tried with a USB 2.0 controller. The DiMAGE A2 camera is USB 2.0 compliant, or atleast KonicaMinolta says so ;-). The patch does not help here since it modifies uhci-hcd. The camera is not reconized. ehci_hcd 0000:00:0b.2: GetStatus port 2 status 001803 POWER sig=j CSC CONNECT hub 1-0:1.0: port 2, status 0501, change 0001, 480 Mb/s hub 1-0:1.0: debounce: port 2: delay 100ms stable 4 status 0x501 hub 1-0:1.0: port 2 not reset yet, waiting 50ms ehci_hcd 0000:00:0b.2: port 2 high speed ehci_hcd 0000:00:0b.2: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT usb 1-2: new high speed USB device using address 2 usb 1-2: control timeout on ep0in ehci_hcd 0000:00:0b.2: devpath 2 ep0out 3strikes ehci_hcd 0000:00:0b.2: devpath 2 ep0out 3strikes usb 1-2: device not accepting address 2, error -71 hub 1-0:1.0: port 2 not reset yet, waiting 50ms ehci_hcd 0000:00:0b.2: port 2 high speed ehci_hcd 0000:00:0b.2: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT usb 1-2: new high speed USB device using address 3 usb 1-2: control timeout on ep0in ehci_hcd 0000:00:0b.2: devpath 2 ep0out 3strikes ehci_hcd 0000:00:0b.2: devpath 2 ep0out 3strikes usb 1-2: device not accepting address 3, error -71 ehci_hcd 0000:00:0b.2: GetStatus port 2 status 001002 POWER sig=se0 CSC hub 1-0:1.0: port 2, status 0100, change 0001, 12 Mb/s An interesting thing is that the DiMAGE A2 camera can be set to diffrent data transfer modes. USB Storage is what causes us problems and what we have been using here. But the camera kan also på set to PTP mode. In this mode the camera is allways reconized by Linux and I have not seen any problems (other then that I think PTP mode is more inconvient to use and slower compared to USB storage). Here is an example with PTP. ehci_hcd 0000:00:0b.2: GetStatus port 2 status 001803 POWER sig=j CSC CONNECT hub 1-0:1.0: port 2, status 0501, change 0001, 480 Mb/s hub 1-0:1.0: debounce: port 2: delay 100ms stable 4 status 0x501 hub 1-0:1.0: port 2 not reset yet, waiting 50ms ehci_hcd 0000:00:0b.2: port 2 high speed ehci_hcd 0000:00:0b.2: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT usb 1-2: new high speed USB device using address 2 usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-2: default language 0x0409 usb 1-2: Product: DIMAGE CAMERA usb 1-2: Manufacturer: KONICA MINOLTA usb 1-2: hotplug usb 1-2: adding 1-2:1.0 (config #1, interface 0) usb 1-2:1.0: hotplug # cat /proc/bus/usb/devices T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.7 uhci_hcd S: Product=UHCI Host Controller S: SerialNumber=0000:00:07.2 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.7 ohci_hcd S: Product=OHCI Host Controller S: SerialNumber=0000:00:0b.1 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.7 ohci_hcd S: Product=OHCI Host Controller S: SerialNumber=0000:00:0b.0 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.7 ehci_hcd S: Product=EHCI Host Controller S: SerialNumber=0000:00:0b.2 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=132b ProdID=0001 Rev= 0.01 S: Manufacturer=KONICA MINOLTA S: Product=DIMAGE CAMERA C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none) E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=4096ms To Martin and Gerhard: In case you didn't know this, see this link for info on how to transfer files from the camera with PTP and Linux http://forums.dpreview.com/forums/read.asp?forum=1024&message=9011399 Regards, Sven-Olof ------------------------------------------------------- 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