Re: Gembird usb card reader

Ernestas Vaiciukevicius <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Monday 10 September 2007 17:50:04 Alan Stern wrote:

> Turn on CONFIG_USB_STORAGE_DEBUG and compare the debugging logs on your
> two computers.  Try to find where the differences occur.
>
> Alan Stern

I've attached the debug log from laptop (where the reader works).

The first difference I see is that on desktop pc (where it doesn't work with 
ehci) after first "Attempting to get CSW..." there is negative status code: 
"usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
 usb-storage: Status code -32; transferred 0/13".
And then - "clearing endpoint halt for pipe 0xc0011780".
But "get CSW" thing succeeds on 2nd try.
This transfer doesn't fail on laptop...

----------------Fragment of debug log on non-working pc:
Aug 26 04:04:17 gw vmunix: usb-storage: Command MODE_SENSE (6 bytes)
Aug 26 04:04:17 gw vmunix: usb-storage:  1a 00 3f 00 c0 00
Aug 26 04:04:17 gw vmunix: usb-storage: Bulk Command S 0x43425355 T 0x6 L 192 
F 128 Trg 0 LUN 0 CL 6
Aug 26 04:04:17 gw vmunix: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 
bytes
Aug 26 04:04:17 gw vmunix: usb-storage: Status code 0; transferred 31/31
Aug 26 04:04:17 gw vmunix: usb-storage: -- transfer complete
Aug 26 04:04:17 gw vmunix: usb-storage: Bulk command transfer result=0
Aug 26 04:04:17 gw vmunix: usb-storage: usb_stor_bulk_transfer_sglist: xfer 
192 bytes, 1 entries
Aug 26 04:04:17 gw vmunix: usb-storage: Status code -121; transferred 4/192
Aug 26 04:04:17 gw vmunix: usb-storage: -- short read transfer
Aug 26 04:04:17 gw vmunix: usb-storage: Bulk data transfer result 0x1
Aug 26 04:04:17 gw vmunix: usb-storage: Attempting to get CSW...
Aug 26 04:04:17 gw vmunix: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 
bytes
Aug 26 04:04:17 gw vmunix: usb-storage: Status code -32; transferred 0/13
Aug 26 04:04:17 gw vmunix: usb-storage: clearing endpoint halt for pipe 
0xc0011780
Aug 26 04:04:17 gw vmunix: usb-storage: usb_stor_control_msg: rq=01 rqtype=02 
value=0000 index=82 len=0
Aug 26 04:04:17 gw vmunix: usb-storage: usb_stor_clear_halt: result = 0
Aug 26 04:04:17 gw vmunix: usb-storage: Attempting to get CSW (2nd try)...
Aug 26 04:04:17 gw vmunix: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 
bytes
Aug 26 04:04:17 gw vmunix: usb-storage: Status code 0; transferred 13/13
Aug 26 04:04:17 gw vmunix: usb-storage: -- transfer complete

---------------On laptop, everything's ok - reader works ok with ehci:

Command MODE_SENSE (6 bytes)
Sep 10 23:25:24 localhost kernel: usb-storage:  1a 00 3f 00 c0 00
Sep 10 23:25:24 localhost kernel: usb-storage: Bulk Command S 0x43425355 T 0x6 
L 192 F 128 Trg 0 LUN 0 CL 6
Sep 10 23:25:24 localhost kernel: usb-storage: usb_stor_bulk_transfer_buf: 
xfer 31 bytes
Sep 10 23:25:24 localhost kernel: usb-storage: Status code 0; transferred 
31/31
Sep 10 23:25:24 localhost kernel: usb-storage: -- transfer complete
Sep 10 23:25:24 localhost kernel: usb-storage: Bulk command transfer result=0
Sep 10 23:25:24 localhost kernel: usb-storage: usb_stor_bulk_transfer_sglist: 
xfer 192 bytes, 1 entries
Sep 10 23:25:24 localhost kernel: usb-storage: Status code -121; transferred 
4/192
Sep 10 23:25:24 localhost kernel: usb-storage: -- short read transfer
Sep 10 23:25:24 localhost kernel: usb-storage: Bulk data transfer result 0x1
Sep 10 23:25:24 localhost kernel: usb-storage: Attempting to get CSW...
Sep 10 23:25:24 localhost kernel: usb-storage: usb_stor_bulk_transfer_buf: 
xfer 13 bytes
Sep 10 23:25:24 localhost kernel: usb-storage: Command TEST_UNIT_READY (6 
bytes)
Sep 10 23:25:24 localhost kernel: usb-storage:  00 20 00 00 00 00
Sep 10 23:25:24 localhost kernel: usb-storage: Bulk Command S 0x43425355 T 
0x13 L 0 F 0 Trg 0 LUN 1 CL 6
Sep 10 23:25:24 localhost kernel: usb-storage: usb_stor_bulk_transfer_buf: 
xfer 31 bytes
Sep 10 23:25:24 localhost kernel: usb-storage: Status code 0; transferred 
31/31
Sep 10 23:25:24 localhost kernel: usb-storage: -- transfer complete

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
debug-usb-ok.log.gz (application/x-gzip, 26.8 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.