Re: gadget serial on an AT91SAM9260 board..

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Friday 13 July 2007, Kenneth Watson wrote:
> Hi, 
> 
> 	I'm having a slight problem using the gadget serial device on an
> AT91SAM9260 board.   When trying to connect to a virtual console on
> windows or the ACM driver on linux, it seems I'm receive a  control
> message to do a SET_LINE_CODE (baudrate,parity, etc).
> 
> 	Looking at the code, this seems to be handled in gs_setup()in serial.c,
> but I don't see where the "data" is being read into the "req->buf".  The
> port_line_coding receives bad data when I connect it to the ACM linux
> driver.

ISTR mentioning that some time back ... the setup() callback needs to
queue a request to read that data, and do the copy in the completion
handler for that request.

Don't recall if a patch has ever been circulated, but yes there are
obviously bugs in handling all that driver's control-OUT transfers.

- Dave



> 	As a result of the "line code data" not being read from the EP0 fifo,
> the board evenutually resets itself (soft lockup) because the fifo is
> never emptied.
> 
> 
> Thanks for any help,
> 
> 	Ken Watson

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[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.