On Mon, 10 Jan 2005, Vladimir Trukhin wrote:

> 
> 
> This is the debugging log of Windows XP session when the driver was 
> started with 'removable' option, i.e.:
> 
> # insmod g_file_storage.ko file=storage removable

> ****************************
> # dmesg -c -s 500000
> ****************************
> 
> g_file_storage gadget: bulk-out, length 0 (time: 1775.451301 s):
> g_file_storage gadget: bulk_out_complete --> -108, 0/31
> g_file_storage gadget: disconnect or port reset
> g_file_storage gadget-lun0: fdatasync -> 0
> g_file_storage gadget: reset config
> g_file_storage gadget: reset interface
> udc: USB reset
> g_file_storage gadget: ep0-setup, length 8 (time: 1775.522107 s):
>      0:  80 06 00 01 00 00 40 00
> g_file_storage gadget: get device descriptor
> g_file_storage gadget: ep0-in, length 18 (time: 1775.523107 s):
>      0:  12 01 00 02 00 00 00 10  25 05 a5 a4 03 03 01 02
>     10:  03 01
> g_file_storage gadget: disconnect or port reset
> g_file_storage gadget-lun0: fdatasync -> 0
> udc: USB reset
> g_file_storage gadget: ep0-setup, length 8 (time: 1775.626080 s):
>      0:  80 06 00 01 00 00 12 00
> g_file_storage gadget: get device descriptor
> g_file_storage gadget: ep0-in, length 18 (time: 1775.627083 s):
>      0:  12 01 00 02 00 00 00 10  25 05 a5 a4 03 03 01 02
>     10:  03 01
> g_file_storage gadget: ep0-setup, length 8 (time: 1775.631079 s):
>      0:  80 06 00 02 00 00 09 00
> g_file_storage gadget: get configuration descriptor
> g_file_storage gadget: ep0-in, length 9 (time: 1775.631161 s):
>      0:  09 02 20 00 01 01 00 c0  01
> g_file_storage gadget: ep0-setup, length 8 (time: 1775.635078 s):
>      0:  00 09 01 00 00 00 00 00
> g_file_storage gadget: set configuration
> g_file_storage gadget: set interface 0
> g_file_storage gadget: full speed config #1 (1775.635196)
> g_file_storage gadget: bulk-out, length 31 (time: 1775.643099 s):
>      0:  55 53 42 43 70 8e 54 81  fc 00 00 00 80 00 0a 23
>     10:  00 00 00 00 00 00 00 fc  00 00 00 00 00 00 00
> g_file_storage gadget: SCSI command: READ FORMAT CAPACITIES;  Dc=10, 
> Di=252;  Hc=10, Hi=252
> g_file_storage gadget: bulk-in, length 0 (time: 1775.643288 s):
> g_file_storage gadget: bulk-in set halt
> g_file_storage gadget: sending command-failure status
> g_file_storage gadget:   sense data: SK x06, ASC x29, ASCQ x00;  info x0
> g_file_storage gadget: bulk-in, length 13 (time: 1775.644406 s):
>      0:  55 53 42 53 70 8e 54 81  fc 00 00 00 01

This pattern repeats over and over in your log.  Windows resets the
gadget, then does READ FORMAT CAPACITIES, then seems surprised when the
gadget sends an error code indicating it was just reset and resets
it again!  This loop does not make much sense; I would expect better of
Microsoft.

For what it's worth, this didn't happen to me either when I tested against 
Windows XP a year ago.  There weren't any repeated resets.  Instead 
Windows did REQUEST SENSE, then proceeded to try a bunch of commands and 
got errors with SK = 0x02 ASC = 0x3a (Not ready, medium not present).  
That is exactly what should happen.

I don't know why the results you get are different from the results I got.

Alan Stern



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to