Hi,

Here is some debug output I captured showing a problem I am having with the
file backed storage driver.

In English, what appears to be happening is the host sends the mode
select(6) command, which is not supported by file_storage.c.  The response
causes the bulk-out ep to be stalled nd the fifos flushed. The error
response is sent and an empty buffer is queued to receive the next bulk-out
data.

check_command okay
do_mode_select: entry
do_scsi_command: error reply length
finish_reply: entry
finish_reply: fsg->data_dir 1
bulk-out set halt
set_halt: ep1out-bulk set halt
finish_reply: returning -4
ep_fifo_flush: entry: ep1in-bulk
ep_fifo_flush: entry: ep1out-bulk
sending command-failure status
ep_queue: ep1in-bulk queue req 02caafa0, len 13 buf 05eac000
req_done: complete ep1in-bulk req 02caafa0 stat 0 len 13/13
bulk_in_complete --> 0, 13/13
ep_queue: ep1out-bulk queue req 05e271a0, len 64 buf 05ea8000
read_fifo: ep1out-bulk len 0, storing at 0x05ea8000 space 64

The problem I am seeing is the next bulk-out data that is received is
responded to with a stall, because the file_storage.c driver didn't call the
UDC set_halt() function with a clear stall indication.

Am I missing something or is one of the other UDC APIs (like flush or queue)
suppose to also clear the stall?

Todd Fischer





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to