On Wed, 23 Jun 2004, Alan Stern wrote:

It sure would be nice to know why the card reader has problems with the
commands sent by 2.6 but not 2.4...

I finally got Fedora's 2.4 kernel rebuilt with debugging.. Here's what it looks like in 2.4 which never fails:

Jun 23 15:56:05 localhost kernel: hub.c: port 1, portstatus 100, change 0, 12 Mb/s
Jun 23 15:56:05 localhost kernel: hub.c: port 2, portstatus 100, change 0, 12 Mb/s
Jun 23 15:56:05 localhost kernel: hub.c: port 3, portstatus 100, change 0, 12 Mb/s
Jun 23 15:56:05 localhost kernel: hub.c: port 4, portstatus 100, change 0, 12 Mb/s
Jun 23 15:56:05 localhost kernel: hub.c: port 5, portstatus 101, change 1, 12 Mb/s
Jun 23 15:56:05 localhost kernel: hub.c: port 5 connection change
Jun 23 15:56:05 localhost kernel: hub.c: port 5, portstatus 101, change 1, 12 Mb/s
Jun 23 15:56:05 localhost kernel: hub.c: port 5, portstatus 101, change 0, 12 Mb/s
Jun 23 15:56:05 localhost last message repeated 3 times
Jun 23 15:56:05 localhost kernel: hub.c: port 5, portstatus 503, change 10, 480 Mb/s
Jun 23 15:56:05 localhost kernel: hub.c: new USB device 00:14.2-2.5, assigned address 7
Jun 23 15:56:05 localhost kernel: usb.c: kmalloc IF d428d7c0, numif 1
Jun 23 15:56:05 localhost kernel: usb.c: new device strings: Mfr=73, Product=82, 
SerialNumber=99
Jun 23 15:56:05 localhost kernel: usb.c: USB device number 7 default language ID 0x409
Jun 23 15:56:05 localhost kernel: Manufacturer: Addonics
Jun 23 15:56:05 localhost kernel: Product: USB to IDE Cable
Jun 23 15:56:05 localhost kernel: SerialNumber: 0123456789AB
Jun 23 15:56:05 localhost kernel: usb-storage: act_altsettting is 0
Jun 23 15:56:05 localhost kernel: usb-storage: id_index calculated to be: 109
Jun 23 15:56:05 localhost kernel: usb-storage: Array length appears to be: 111
Jun 23 15:56:05 localhost kernel: usb-storage: USB Mass Storage device detected
Jun 23 15:56:05 localhost kernel: usb-storage: Endpoints: In: 0xd2316980 Out: 
0xd2316994 Int: 0xd23169a8 (Period 9)
Jun 23 15:56:06 localhost kernel: usb-storage: New GUID 0dbf030200000123456789ab
Jun 23 15:56:06 localhost kernel: usb-storage: GetMaxLUN command result is 1, data is 0
Jun 23 15:56:06 localhost kernel: usb-storage: Transport: Bulk
Jun 23 15:56:06 localhost kernel: usb-storage: Protocol: Transparent SCSI
Jun 23 15:56:06 localhost kernel: usb-storage: *** thread sleeping.
Jun 23 15:56:06 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jun 23 15:56:06 localhost kernel: usb-storage: queuecommand() called
Jun 23 15:56:06 localhost kernel: usb-storage: *** thread awakened.
Jun 23 15:56:06 localhost kernel: usb-storage: Command INQUIRY (6 bytes)
Jun 23 15:56:06 localhost kernel: usb-storage: 12 00 00 00 ff 00 00 00 cf 5e 1b c0
Jun 23 15:56:06 localhost kernel: usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 
LUN 0 L 255 F 128 CL 6
Jun 23 15:56:06 localhost kernel: usb-storage: Bulk command transfer result=0
Jun 23 15:56:06 localhost kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 
bytes
Jun 23 15:56:06 localhost kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 
36/255
Jun 23 15:56:06 localhost kernel: usb-storage: Bulk data transfer result 0x1
Jun 23 15:56:06 localhost kernel: usb-storage: Attempting to get CSW...
Jun 23 15:56:06 localhost kernel: usb-storage: clearing endpoint halt for pipe 
0xc0010780
Jun 23 15:56:06 localhost kernel: usb-storage: usb_stor_clear_halt: result=0
Jun 23 15:56:06 localhost kernel: usb-storage: Attempting to get CSW (2nd try)...
Jun 23 15:56:06 localhost kernel: usb-storage: Bulk status result = 0
Jun 23 15:56:06 localhost kernel: usb-storage: Bulk status Sig 0x53425355 T 0x1 R 219 
Stat 0x0

And a sucessful insertion on 2.6 looks like:

Jun 23 16:04:03 light kernel: hub 1-2:1.0: port 5, status 0100, change 0001, 12 Mb/s
Jun 23 16:04:03 light kernel: hub 1-2:1.0: port 5, status 0101, change 0001, 12 Mb/s
Jun 23 16:04:03 light kernel: hub 1-2:1.0: debounce: port 5: delay 100ms stable 4 
status 0x101
Jun 23 16:04:03 light kernel: hub 1-2:1.0: port 5 not reset yet, waiting 10ms
Jun 23 16:04:03 light kernel: usb 1-2.5: new full speed USB device using address 3
Jun 23 16:04:03 light kernel: usb 1-2.5: new device strings: Mfr=73, Product=82, 
SerialNumber=99
Jun 23 16:04:03 light kernel: usb 1-2.5: default language 0x0409
Jun 23 16:04:03 light kernel: usb 1-2.5: Product: USB to IDE Cable
Jun 23 16:04:03 light kernel: usb 1-2.5: Manufacturer: Addonics
Jun 23 16:04:03 light kernel: usb 1-2.5: SerialNumber: 0123456789AB
Jun 23 16:04:03 light kernel: usb 1-2.5: hotplug
Jun 23 16:04:03 light kernel: usb 1-2.5: adding 1-2.5:2.0 (config #2, interface 0)
Jun 23 16:04:03 light kernel: usb 1-2.5:2.0: hotplug
Jun 23 16:04:04 light kernel: SCSI subsystem initialized
Jun 23 16:04:04 light kernel: Initializing USB Mass Storage driver...
Jun 23 16:04:04 light kernel: usb-storage 1-2.5:2.0: usb_probe_interface
Jun 23 16:04:04 light kernel: usb-storage 1-2.5:2.0: usb_probe_interface - got id
Jun 23 16:04:04 light kernel: usb-storage: USB Mass Storage device detected
Jun 23 16:04:04 light kernel: usb-storage: altsetting is 0, id_index is 120
Jun 23 16:04:04 light kernel: usb-storage: -- associate_dev
Jun 23 16:04:04 light kernel: usb-storage: Transport: Bulk
Jun 23 16:04:04 light kernel: usb-storage: Protocol: Transparent SCSI
Jun 23 16:04:04 light kernel: usb-storage: Endpoints: In: 0xd259aa04 Out: 0xd259aa18 
Int: 0xd259aa2c (Period 32)
Jun 23 16:04:04 light kernel: usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 
value=0000 index=00 len=1
Jun 23 16:04:04 light kernel: usb-storage: GetMaxLUN command result is 1, data is 0
Jun 23 16:04:04 light kernel: usb-storage: *** thread sleeping.
Jun 23 16:04:04 light kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jun 23 16:04:04 light kernel: usb-storage: queuecommand called
Jun 23 16:04:04 light kernel: usb-storage: *** thread awakened.
Jun 23 16:04:04 light kernel: usb-storage: Command INQUIRY (6 bytes)
Jun 23 16:04:04 light kernel: usb-storage:  12 00 00 00 24 00
Jun 23 16:04:04 light kernel: usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 
Trg 0 LUN 0 CL 6
Jun 23 16:04:04 light kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
Jun 23 16:04:04 light kernel: usb-storage: Status code 0; transferred 31/31
Jun 23 16:04:04 light kernel: usb-storage: -- transfer complete
Jun 23 16:04:04 light kernel: usb-storage: Bulk command transfer result=0
Jun 23 16:04:04 light kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes
Jun 23 16:04:04 light kernel: usb-storage: Status code 0; transferred 36/36
Jun 23 16:04:04 light kernel: usb-storage: -- transfer complete
Jun 23 16:04:04 light kernel: usb-storage: Bulk data transfer result 0x0
Jun 23 16:04:04 light kernel: usb-storage: Attempting to get CSW...
Jun 23 16:04:04 light kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Jun 23 16:04:04 light kernel: usb-storage: Status code 0; transferred 13/13
Jun 23 16:04:04 light kernel: usb-storage: -- transfer complete
Jun 23 16:04:04 light kernel: usb-storage: Bulk status result = 0
Jun 23 16:04:04 light kernel: usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0


The only immediate thing that stands out to me is that in 2.4 the INQUIRY is '12 00 00 00 FF 00' (Allocation length 255), while in 2.6 it is '12 00 00 00 24 00' (Allocation length 36 (makes sense)).

Regards,
Ian Morgan

--
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca       PGP: #2DA40D07       www.webcon.ca
    *  Customized Linux Network Solutions for your Business  *
-------------------------------------------------------------------


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to