On Fri, 12 Mar 2004, Alan Stern wrote: > (It's easier to follow the conversation if you insert your replies in-line > with the previous message, like I do in this reply. Don't top-post.) >
Understood, sorry. Also, as stated in a separate email that I will reference in this mail: I own 3 devices that use usb storage. 1) wrist watch (not working) 2) pen drive (not working, definitely used to work) 3) HP digital camera (working) > > On Fri, 12 Mar 2004, Jerry Kilpatrick wrote: > > > I hate coincidences, but I'm still confused. > > > > I reverted back to last 2.4 kernel which happened to be 2.4.21 with the > > preempt patch and software suspend patch installed. I plugged in my usb > > storage device and it did the same thing. I was able to mount it and read > > from it, but was unable to write or anything to it. So it appears that > > something had happened to my uhci? However, I can plug other devices such > > as keyboards, mice, and usb/serial cable and they work perfectly fine. > > Maybe there's something wrong with the device, not the computer's > interface. All 3 usb storage devices I own work on Windows XP machines and another linux machine using kernel 2.6.4 ohci_hcd, but other than my digital camera, the pen drive and the wrist watch do not work on this pc. > > > In 2.4.21 I used the module uhci for my usb driver. (I think that was a > > question.) > > Yes. Less relevant now that we know it behaves the same way as the 2.6 > driver. > > > Is this possible to have my usb port be broken yet have it work for other > > types of devices? > > It's pretty unlikely. Much more probably your storage device is broken. > That could easily explain, for instance, why reads work but writes fail. > As mentioned before the devices work fine elsewhere including Windows XP machines and a Linux machine with a 2.6.4 kernel as well. > > Thanks again for the help. > > > > In case there still may be some problem here is the rest of the > > information you had requested. > > > > /proc/driver/uhci/00:00:07.2 BEFORE FAILURE: > > HC status > > usbcmd = 00c1 Maxp64 CF RS > > usbstat = 0000 > > usbint = 000f > > usbfrnum = (1)030 > > flbaseadd = 0e510030 > > sof = 40 > > stat1 = 0095 Enabled Connected > > stat2 = 0480 OverCurrent > > Frame List > > Skeleton QH's > > > > /proc/driver/uhci/00:00:07.2 AFTER FAILURE: > > HC status > > usbcmd = 00c1 Maxp64 CF RS > > usbstat = 0000 > > usbint = 000f > > usbfrnum = (1)bb0 > > flbaseadd = 0e510bb0 > > sof = 40 > > stat1 = 0095 Enabled Connected > > stat2 = 0480 OverCurrent > > Frame List > > Skeleton QH's > > No significant changes (the usbfrnum and flbaseadd values constantly > update during normal use). I'm still concerned about that overcurrent > indicator on the stat2 lines. Does your computer have two USB ports or > only one? I ask because with some models (laptops mostly) the > manufacturer only puts in a single port, even though the USB controller is > capable of handling two ports. Sometimes in a misguided attempt to > disable the unused second port, they hardwire the overcurrent input on. > (HP in particular has been known to do this.) My PC only has 1 usb port. It is a laptop. Dell Latitude LS400 (I think). > Just out of curiousity, what does this file say before you plug in your > storage device? /proc/driver/uhci/00:00:07.2 BEFORE ANYTHING: HC status usbcmd = 00c1 Maxp64 CF RS usbstat = 0000 usbint = 000f usbfrnum = (1)9ac flbaseadd = 0e4d09ac sof = 40 stat1 = 0080 stat2 = 0480 OverCurrent Frame List Skeleton QH's > > USB-STORAGE WITH USB DEBUGGING: > > 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 > > usb-storage: USB Mass Storage device detected > > usb-storage: act_altsetting is 0, id_index is 117 > > usb-storage: -- associate_dev > > uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 > > [ced0f240] link (0ed0f1e2) element (0eb7f040) > > 0: [ceb7f040] link (0eb7f080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 > > EndPt=0 Dev=3, PID=2d(SETUP) (buf=00ef4e80) > > 1: [ceb7f080] link (0eb7f0c0) e3 SPD Active Length=0 MaxLen=1 DT1 > > EndPt=0 Dev=3, PID=69(IN) (buf=025996a0) > > 2: [ceb7f0c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 > > EndPt=0 Dev=3, PID=e1(OUT) (buf=00000000) > > Same as before, I'll skip the rest. It's still not clear why these > requests fail when similar ones must have succeeded at the time you > plugged in the device. However it is clear that during the session where > you recorded that log, you would not have been able to read from the > device. Do you have a debugging log from a session where you could read > but couldn't write? I'm not exactly sure about what you mean by debugging log, but I'll do the best I can: Loaded usb_storage and plugged in the device -> USB Mass Storage support registered. uhci_hcd 0000:00:07.2: port 1 portsc 0093 hub 1-0:1.0: port 1, status 101, change 1, 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: new device strings: Mfr=1, Product=2, SerialNumber=3 drivers/usb/core/message.c: USB device number 2 default language ID 0x409 usb 1-1: Product: Usb Flash Disk usb 1-1: Manufacturer: ManPower usb 1-1: SerialNumber: SN0301001 drivers/usb/core/usb.c: usb_hotplug usb 1-1: registering 1-1:1.0 (config #1, interface 0) drivers/usb/core/usb.c: usb_hotplug usb-storage 1-1:1.0: usb_probe_interface usb-storage 1-1:1.0: usb_probe_interface - got id usb-storage: USB Mass Storage device detected usb-storage: act_altsetting is 0, id_index is 117 usb-storage: -- associate_dev usb-storage: Transport: Bulk usb-storage: Protocol: Transparent SCSI usb-storage: Endpoints: In: 0xceba3fb4 Out: 0xceba3fa0 Int: 0x00000000 (Period 0) usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1 usb-storage: GetMaxLUN command result is 1, data is 0 usb-storage: *** thread sleeping. scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 24 00 usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes usb-storage: Status code 0; transferred 36/36 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. Vendor: ManPower Model: Usb Flash Disk Rev: 2.23 Type: Direct-Access ANSI SCSI revision: 02 usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x2 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x2 R 0 Stat 0x1 usb-storage: -- transport indicates command failure usb-storage: Issuing auto-REQUEST_SENSE usb-storage: Bulk Command S 0x43425355 T 0x80000002 L 18 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes usb-storage: Status code 0; transferred 18/18 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x80000002 R 0 Stat 0x0 usb-storage: -- Result from auto-sense is 0 usb-storage: -- code: 0x70, key: 0x6, ASC: 0x28, ASCQ: 0x0 usb-storage: Unit Attention: Not ready to ready change, medium may have changed usb-storage: scsi cmd done, result=0x2 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x3 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x3 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command READ_CAPACITY (10 bytes) usb-storage: 25 00 00 00 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x4 L 8 F 128 Trg 0 LUN 0 CL 10 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes usb-storage: Status code 0; transferred 8/8 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x4 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. SCSI device sda: 260736 512-byte hdwr sectors (133 MB) sda: assuming Write Enabled sda: assuming drive cache: write through usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x5 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x5 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes) usb-storage: 1e 00 00 00 01 00 usb-storage: Bulk Command S 0x43425355 T 0x6 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x6 R 0 Stat 0x1 usb-storage: -- transport indicates command failure usb-storage: Issuing auto-REQUEST_SENSE usb-storage: Bulk Command S 0x43425355 T 0x80000006 L 18 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes usb-storage: Status code 0; transferred 18/18 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x80000006 R 0 Stat 0x0 usb-storage: -- Result from auto-sense is 0 usb-storage: -- code: 0x70, key: 0x5, ASC: 0x20, ASCQ: 0x0 usb-storage: Illegal Request: Invalid command operation code usb-storage: scsi cmd done, result=0x2 usb-storage: *** thread sleeping. /dev/scsi/host0/bus0/target0/lun0:<7>usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command READ_10 (10 bytes) usb-storage: 28 00 00 00 00 00 00 00 08 00 usb-storage: Bulk Command S 0x43425355 T 0x7 L 4096 F 128 Trg 0 LUN 0 CL 10 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1 entries usb-storage: Status code 0; transferred 4096/4096 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x7 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. p1 Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad LUN (0:1) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (1:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (2:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (3:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (4:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (5:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (6:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (7:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 2 mounted the device -> jango root # mount /mnt/watch/ FSTAB: /dev/sda1 /mnt/watch vfat noauto 0 0 DMESG (just grabbed a chunk, it seems to have spewed more information that dmesg will throw out, however I grabbed the first few lines from syslogd after I mounted): Mar 12 14:17:49 jango usb-storage: queuecommand called Mar 12 14:17:49 jango usb-storage: *** thread awakened. Mar 12 14:17:49 jango usb-storage: Command TEST_UNIT_READY (6 bytes) Mar 12 14:17:49 jango usb-storage: 00 00 00 00 00 00 Mar 12 14:17:49 jango usb-storage: Bulk Command S 0x43425355 T 0x10 L 0 F 0 Trg 0 LUN 0 CL 6 Mar 12 14:17:49 jango usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes Mar 12 14:17:49 jango usb-storage: Status code 0; transferred 31/31 Mar 12 14:17:49 jango usb-storage: -- transfer complete usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command READ_10 (10 bytes) usb-storage: 28 00 00 00 02 1e 00 00 01 00 usb-storage: Bulk Command S 0x43425355 T 0x31 L 512 F 128 Trg 0 LUN 0 CL 10 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_sglist: xfer 512 bytes, 1 entries usb-storage: Status code 0; transferred 512/512 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x31 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. Just to show you it's working, no comments about my music... -> jango root # ls /mnt/watch/ Flyers_0800.JPG Fortune_0800.JPG Judgement_0800.JPG Roamer_0360.JPG copy some files -> cp *.jpg /mnt/watch/ cp: writing `/mnt/watch/SKIM.jpg': Input/output error cp: writing `/mnt/watch/photo_023.jpg': Input/output error cp: writing `/mnt/watch/photo_025.jpg': Input/output error cp: writing `/mnt/watch/photo_032.jpg': Input/output error cp: writing `/mnt/watch/photo_033.jpg': Input/output error cp: writing `/mnt/watch/tracey_phone_01.jpg': Input/output error DMESG (message repeats a lot, not sure if it's any different) usb-storage: Soft reset failed: -110 usb-storage: scsi cmd done, result=0x70000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command READ_10 (10 bytes) usb-storage: 28 00 00 00 00 03 00 00 01 00 usb-storage: Bulk Command S 0x43425355 T 0x50 L 512 F 128 Trg 0 LUN 0 CL 10 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code -110; transferred 31/31 usb-storage: -- timeout or NAK usb-storage: Bulk command transfer result=4 usb-storage: -- transport indicates error, resetting usb-storage: usb_stor_Bulk_reset called usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 [ceb4c270] link (0eb4c1e2) element (00499040) 0: [c0499040] link (00499080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=0edf8020) 1: [c0499080] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=69(IN) (buf=00000000) usb-storage: Soft reset failed: -110 usb-storage: scsi cmd done, result=0x70000 usb-storage: *** thread sleeping. SCSI error : <0 0 0 0> return code = 0x70000 end_request: I/O error, dev sda, sector 3 FAT: bread(block 2) in fat_access failed Do an ls -> jango jerry # ls /mnt/watch/ (nothing here) DMESG: usb-storage: Soft reset failed: -110 usb-storage: scsi cmd done, result=0x70000 usb-storage: *** thread sleeping. SCSI error : <0 0 0 0> return code = 0x70000 end_request: I/O error, dev sda, sector 513 FAT: Directory bread(block 512) failed Unmount -> umount /mnt/watch (quickly returned) DMESG: No obviously new messages. FYI: Remounted -> jango jerry # mount /mnt/watch mount: /dev/sda1 is not a valid block device unplugged, replugged, remounted, and ls -> jango jerry # mount /mnt/watch jango jerry # ls /mnt/watch Flyers_0800.JPG Fortune_0800.JPG Judgement_0800.JPG Roamer_0360.JPG unplug, move to other linux machine, copy file onto it, unmount, unplug, plug back into bad machine, remount and ls -> jango jerry # mount /mnt/watch jango jerry # ls /mnt/watch Flyers_0800.JPG Fortune_0800.JPG Judgement_0800.JPG Roamer_0360.JPG zlair_logo.png In case this is relevant, here is me loading usb_storage and loading my HP Digital camera which works. USB Mass Storage support registered. uhci_hcd 0000:00:07.2: port 1 portsc 0093 hub 1-0:1.0: port 1, status 101, change 1, 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 uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 [ceb48240] link (0eb481e2) element (0eb4d080) Element != First TD 0: [ceb4d040] link (0eb4d080) e3 Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=080cdc40) 1: [ceb4d080] link (0eb4d0c0) e0 SPD Stalled CRC/Timeo Length=7ff MaxLen=7 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=080cdc20) 2: [ceb4d0c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000) uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 [ceb48270] link (0eb481e2) element (0eb4d100) 0: [ceb4d100] link (0eb4d140) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=080cdc40) 1: [ceb4d140] link (0eb4d180) e3 SPD Active Length=0 MaxLen=7 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=080cdc20) 2: [ceb4d180] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000) uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 [ceb48240] link (0eb481e2) element (0eb4d040) 0: [ceb4d040] link (0eb4d080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=080cdc40) 1: [ceb4d080] link (0eb4d0c0) e3 SPD Active Length=0 MaxLen=7 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=080cdc20) 2: [ceb4d0c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000) uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 [ceb48270] link (0eb481e2) element (0eb4d100) 0: [ceb4d100] link (0eb4d140) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=080cdc40) 1: [ceb4d140] link (0eb4d180) e3 SPD Active Length=0 MaxLen=7 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=080cdc20) 2: [ceb4d180] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000) uhci_hcd 0000:00:07.2: uhci_result_control: failed with status 440000 [ceb48240] link (0eb481e2) element (0eb4d040) 0: [ceb4d040] link (0eb4d080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=080cdc40) 1: [ceb4d080] link (0eb4d0c0) e3 SPD Active Length=0 MaxLen=7 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=080cdc20) 2: [ceb4d0c0] link (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000) usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0 drivers/usb/core/message.c: USB device number 2 default language ID 0x409 usb 1-1: Product: HP PhotoSmart 318 Camera usb 1-1: Manufacturer: Hewlett-Packard drivers/usb/core/usb.c: usb_hotplug usb 1-1: registering 1-1:1.0 (config #1, interface 0) drivers/usb/core/usb.c: usb_hotplug usb-storage 1-1:1.0: usb_probe_interface usb-storage 1-1:1.0: usb_probe_interface - got id usb-storage: USB Mass Storage device detected usb-storage: act_altsetting is 0, id_index is 117 usb-storage: -- associate_dev usb-storage: Transport: Bulk usb-storage: Protocol: Transparent SCSI usb-storage: Endpoints: In: 0xcf24a860 Out: 0xcf24a874 Int: 0x00000000 (Period 0) usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1 usb-storage: GetMaxLUN command result is 1, data is 0 usb-storage: *** thread sleeping. scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 24 00 usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes usb-storage: Status code 0; transferred 36/36 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0 usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 7a 00 usb-storage: Bulk Command S 0x43425355 T 0x2 L 122 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 122 bytes usb-storage: Status code 0; transferred 122/122 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x2 R 0 Stat 0x0 usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. Vendor: HP Model: PhotoSmart 318 Rev: 100 Type: Direct-Access ANSI SCSI revision: 02 usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x3 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x3 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command READ_CAPACITY (10 bytes) usb-storage: 25 00 00 00 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x4 L 8 F 128 Trg 0 LUN 0 CL 10 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes usb-storage: Status code 0; transferred 8/8 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x4 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. SCSI device sda: 250881 512-byte hdwr sectors (128 MB) sda: assuming Write Enabled sda: assuming drive cache: write through usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x5 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x5 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes) usb-storage: 1e 00 00 00 01 00 usb-storage: Bulk Command S 0x43425355 T 0x6 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x6 R 0 Stat 0x1 usb-storage: -- transport indicates command failure usb-storage: Issuing auto-REQUEST_SENSE usb-storage: Bulk Command S 0x43425355 T 0x80000006 L 18 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes usb-storage: Status code 0; transferred 18/18 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x80000006 R 0 Stat 0x0 usb-storage: -- Result from auto-sense is 0 usb-storage: -- code: 0x70, key: 0x5, ASC: 0x20, ASCQ: 0x0 usb-storage: Illegal Request: Invalid command operation code usb-storage: scsi cmd done, result=0x2 usb-storage: *** thread sleeping. /dev/scsi/host0/bus0/target0/lun0:<7>usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command READ_10 (10 bytes) usb-storage: 28 00 00 00 00 00 00 00 08 00 usb-storage: Bulk Command S 0x43425355 T 0x7 L 4096 F 128 Trg 0 LUN 0 CL 10 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1 entries usb-storage: Status code 0; transferred 4096/4096 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x7 R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. p1 Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad LUN (0:1) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (1:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (2:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (3:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (4:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (5:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (6:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (7:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 2 I can mount it, write to it, unmount it move it somewhere else, and those files are still on there. I also just realized that somehow I had turned on Enforce USB bandwidth allocation and Dynamic USB minor allocation which were both EXPERIMENTAL and they weren't checked on the working machine. I'm recompiling and testing without those options. > Alan Stern > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel