On Thu, 18 May 2006, Peter Chen wrote:

> I find when i do set_configuration,the set configuration execution is
> delayed,that causes my USB_BULK_GET_MAX_LUN_REQUEST can't be executed
> rightly(as fsg->config is 0 ).And the clear halt for ep1(
> CLEAR_FAETURE)is not right either.Then,i get "fsg full speed config #1"
> that means the SET_CONFIGURATION is right.but then,the host would not
> send USB_BULK_GET_MAX_LUN_REQUEST any more.However,at that time,the
> file_storage thinks the bus enumeration is finished,it begins to do scsi
> command,and attempts to read my ep1_out,my ep1 fifo's data is not right
> then.
> That's my thinking for it,is it right?

Your thinking is right but your udc driver is wrong.

> if it is right,then how can i let set configuration finish before the
> host sends USB_BULK_GET_MAX_LUN_REQUEST command?

When your udc driver calls fsg_setup, it should NAK the status stage of
the control transfer until the gadget driver calls usb_ep_queue().  That
will happen after set_configuration is finished.  The host will wait until 
you stop sending NAK before it proceeds with Get-Max-LUN.

Alan Stern



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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