On Thu, 26 Jul 2007 [EMAIL PROTECTED] wrote:

> 1. SET_LINE_CODING handling in gs_setup_class() copies req->buf to its
> port_line_coding struct but data stage has not been reached yet.

Have you considered mentioning this to the author or maintainer of that 
driver?

> 2. generic question on setup handling by gadget drivers: 

You mean Control transfer handling.  Your question is about the Status 
stage, not the Setup stage.

> For setup-data-ack sequence, is ack to be generated by the controller
> driver always?

No; only if the request is valid and is carried out successfully.

>  What if it is data-out and the settings cannot be
> supported by the gadget for whatever reason, how does it inform the
> controller driver?

You can set the Halt feature on ep0 in the data-out completion routine.  
(See 8.5.3.1 and Table 8-7 in the USB 2.0 spec.)  Some controller
drivers might not support this, though.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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