Greg KH <[EMAIL PROTECTED]> writes:

> Here are some USB updates and bugfixes for 2.4.21-pre6.  These are all
> changes and bugfixes that have been in 2.5 for a while.  Lots of good
> memory leak fixes are in here.

Greg,

Thanks for these patches.  I noticed a lot of USB storage fixes, and
so I have applied them a built a kernel with them.

However, I notice that I still am having trouble mouting my memory
stick from a Clie NX-70V.  In case you're not aware, that PDA has a
USB interface and an application that lets an inserted memory stick
appear as a USB storage device, similar to a memory stick reader.

This kernel has SCSI and USB support verbose debugging support
enabled.  Let me paste some kernel log lines and annotate them:

This is when I started the PDA app to enable USB mass storage
connection:  [duplicated lines omitted]

Mar 29 11:10:11 christoph kernel: hub.c: port 1, portstatus 103, change 10, 12 Mb/s
Mar 29 11:10:11 christoph kernel: hub.c: new USB device 10:18.0-1, assigned address 2
Mar 29 11:10:11 christoph kernel: usb.c: kmalloc IF c4d3a6c0, numif 1
Mar 29 11:10:11 christoph kernel: usb.c: new device strings: Mfr=1, Product=2, 
SerialNumber=0
Mar 29 11:10:11 christoph kernel: usb.c: USB device number 2 default language ID 0x409
Mar 29 11:10:11 christoph kernel: Manufacturer: Sony
Mar 29 11:10:11 christoph kernel: Product: Sony PEG Mass Storage
Mar 29 11:10:11 christoph kernel: usb-storage: act_altsettting is 0
Mar 29 11:10:11 christoph kernel: usb-storage: id_index calculated to be: 87
Mar 29 11:10:11 christoph kernel: usb-storage: Array length appears to be: 96
Mar 29 11:10:11 christoph kernel: usb-storage: USB Mass Storage device detected
Mar 29 11:10:11 christoph kernel: usb-storage: Endpoints: In: 0xcd255be0 Out: 
0xcd255bf4 Int: 0xcd255c08 (Period 1)
Mar 29 11:10:11 christoph kernel: usb-storage: New GUID 054c00d90000000000000000
Mar 29 11:10:11 christoph kernel: usb-storage: Transport: Control/Bulk/Interrupt
Mar 29 11:10:11 christoph kernel: usb-storage: Protocol: 8070i
Mar 29 11:10:11 christoph kernel: usb-storage: Allocating IRQ for CBI transport
Mar 29 11:10:11 christoph kernel: usb-storage: usb_submit_urb() returns 0
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Command INQUIRY (6 bytes)
Mar 29 11:10:11 christoph kernel: usb-storage: 12 00 00 00 ff 00 00 00 d7 67 fc a0
Mar 29 11:10:11 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:11 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 
bytes
Mar 29 11:10:11 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
56/255
Mar 29 11:10:11 christoph kernel: usb-storage: CBI data stage result is 0x1
Mar 29 11:10:11 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:11 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:11 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:11 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:11 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:11 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:11 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:11 christoph kernel: usb-storage: Fixing INQUIRY data to show SCSI rev 2
Mar 29 11:10:11 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel:   Vendor: Sony      Model: CLIE MGMS         Rev: 
1.00
Mar 29 11:10:11 christoph kernel:   Type:   Direct-Access                      ANSI 
SCSI revision: 02
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Bad target number (1/0)
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Bad target number (2/0)
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Bad target number (3/0)
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Bad target number (4/0)
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Bad target number (5/0)
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Bad target number (6/0)
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:11 christoph kernel: usb-storage: Bad target number (7/0)
Mar 29 11:10:11 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:11 christoph kernel: WARNING: USB Mass Storage data integrity not assured
Mar 29 11:10:11 christoph kernel: USB Mass Storage device found at 2
Mar 29 11:10:11 christoph kernel: usb.c: usb-storage driver claimed interface c4d3a6c0
Mar 29 11:10:11 christoph kernel: usb.c: kusbd: /sbin/hotplug add 2
Mar 29 11:10:11 christoph kernel: usb.c: kusbd policy returned 0xfffffffe
Mar 29 11:10:11 christoph kernel: hub.c: port 2, portstatus 100, change 0, 12 Mb/s

Now, in the past, trying to mount /dev/sda1 or /dev/sda returns
errors, and so my first test is to simply cat /dev/sda | less, to see
if I can even read from it.  I ran that command, and as usual, cat
returned an I/O error.  Here are the log lines from that cat command:

Mar 29 11:10:26 christoph kernel: Attached scsi removable disk sda at scsi0, channel 
0, id 0, lun 0
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 bd 60
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
-32
Mar 29 11:10:26 christoph kernel: usb-storage: -- Stall on control pipe. Clearing
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_clear_halt: result=0
Mar 29 11:10:26 christoph kernel: usb-storage: -- transport indicates command failure
Mar 29 11:10:26 christoph kernel: usb-storage: Issuing auto-REQUEST_SENSE
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 18 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
18/18
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): transfer 
complete
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Result from auto-sense is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- code: 0x70, key: 0x6, ASC: 0x28, 
ASCQ: 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Unit Attention: not ready to ready 
transition
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x2
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 bd 60
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command READ_CAPACITY (10 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 25 00 00 00 00 00 00 00 00 00 bd 60
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 8 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
8/8
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): transfer 
complete
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: SCSI device sda: 253696 512-byte hdwr sectors (130 
MB)
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command MODE_SENSE (6 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 bd 60
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
108/255
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x1
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- converting 10 byte sense data to 6 
byte
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: sda: Write Protect is off
Mar 29 11:10:26 christoph kernel:  /dev/scsi/host0/bus0/target0/lun0:<7>usb-storage: 
queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command READ_10 (10 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 28 00 00 00 00 00 00 00 08 00 00 00
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 4096 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
4096/4096
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): transfer 
complete
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel:  p1
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command START_STOP (6 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 1b 00 00 00 01 00 39 b4 da a0 8f 84
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
-32
Mar 29 11:10:26 christoph kernel: usb-storage: -- Stall on control pipe. Clearing
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_clear_halt: result=0
Mar 29 11:10:26 christoph kernel: usb-storage: -- transport indicates command failure
Mar 29 11:10:26 christoph kernel: usb-storage: Issuing auto-REQUEST_SENSE
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 18 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
18/18
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): transfer 
complete
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Result from auto-sense is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- code: 0x70, key: 0x5, ASC: 0x20, 
ASCQ: 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Illegal Request: invalid command 
operation code
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x2
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: SCSI device (ioctl) reports ILLEGAL REQUEST.
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 bd 70
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command READ_CAPACITY (10 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 25 00 00 00 00 00 00 00 00 00 bd 70
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 8 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
8/8
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): transfer 
complete
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: SCSI device sda: 253696 512-byte hdwr sectors (130 
MB)
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command MODE_SENSE (6 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 bd 70
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
108/255
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x1
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- converting 10 byte sense data to 6 
byte
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x0
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel: sda: Write Protect is off
Mar 29 11:10:26 christoph kernel:  /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 
08:00, sector 0
Mar 29 11:10:26 christoph kernel:  I/O error: dev 08:00, sector 0
Mar 29 11:10:26 christoph kernel:  unable to read partition table
Mar 29 11:10:26 christoph kernel: usb-storage: queuecommand() called
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread awakened.
Mar 29 11:10:26 christoph kernel: usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
Mar 29 11:10:26 christoph kernel: usb-storage: 1e 00 00 00 01 00 08 00 c7 09 be 20
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
-32
Mar 29 11:10:26 christoph kernel: usb-storage: -- Stall on control pipe. Clearing
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_clear_halt: result=0
Mar 29 11:10:26 christoph kernel: usb-storage: -- transport indicates command failure
Mar 29 11:10:26 christoph kernel: usb-storage: Issuing auto-REQUEST_SENSE
Mar 29 11:10:26 christoph kernel: usb-storage: Call to usb_stor_control_msg() returned 
12
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): xfer 18 
bytes
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
18/18
Mar 29 11:10:26 christoph kernel: usb-storage: usb_stor_transfer_partial(): transfer 
complete
Mar 29 11:10:26 christoph kernel: usb-storage: CBI data stage result is 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Current value of ip_waitq is: 0
Mar 29 11:10:26 christoph kernel: usb-storage: USB IRQ received for device on host 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ data length is 2
Mar 29 11:10:26 christoph kernel: usb-storage: -- IRQ state is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- Interrupt Status (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Current value of ip_waitq is: -1
Mar 29 11:10:26 christoph kernel: usb-storage: Got interrupt data (0x0, 0x0)
Mar 29 11:10:26 christoph kernel: usb-storage: -- Result from auto-sense is 0
Mar 29 11:10:26 christoph kernel: usb-storage: -- code: 0x70, key: 0x5, ASC: 0x20, 
ASCQ: 0x0
Mar 29 11:10:26 christoph kernel: usb-storage: Illegal Request: invalid command 
operation code
Mar 29 11:10:26 christoph kernel: usb-storage: scsi cmd done, result=0x2
Mar 29 11:10:26 christoph kernel: usb-storage: *** thread sleeping.
Mar 29 11:10:26 christoph kernel:  I/O error: dev 08:00, sector 0

Out of curiousity, I checked out some files in /proc:

christoph:/proc/scsi/usb-storage-0# cat 0
   Host scsi0: usb-storage
       Vendor: Sony
      Product: Sony PEG Mass Storage
Serial Number: None
     Protocol: 8070i
    Transport: Control/Bulk/Interrupt
         GUID: 054c00d90000000000000000
     Attached: Yes
christoph:/proc/scsi# cat scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: Sony     Model: CLIE MGMS        Rev: 1.00
  Type:   Direct-Access                    ANSI SCSI revision: 02

Feel free to ask for further info.  I'll be glad to supply.

In case it makes any difference, this is on PowerPC architecture;
however, I have heard reports of the same problem from i386 users.



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to