Re: Usb serial gadget driver bug?

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
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.