Re: ftdi_sio: ftdi_set_termios

2016-02-28 Thread Johan Hovold
On Fri, Feb 19, 2016 at 01:55:34PM +0300, Matwey V. Kornilov wrote:
> Dear Bill and all,
> 
> I am facing an issue with ftdi_sio module and FTDI FT232-based
> devices. Now I am trying to understand where the origin is.
> By indirect evidences, I think that there is a small time gap between
> return of tcsetattr(fd_, TCSANOW, _termios) and actual settings
> application in the hardware. From the kernel sources I see that
> tcsetattr returns after ftdi_set_termios complete, which uses sync
> usb_control_msg calls.
> Unfortunately, I've not found data-sheet for FT232 describing USB
> protocol, so I would like to ask whether it is guaranteed that new
> settings are applied in hardware before ftdi_set_termios returns?

I'd assume so, but that's a question better posed to FTDI.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


ftdi_sio: ftdi_set_termios

2016-02-19 Thread Matwey V. Kornilov
Dear Bill and all,

I am facing an issue with ftdi_sio module and FTDI FT232-based
devices. Now I am trying to understand where the origin is.
By indirect evidences, I think that there is a small time gap between
return of tcsetattr(fd_, TCSANOW, _termios) and actual settings
application in the hardware. From the kernel sources I see that
tcsetattr returns after ftdi_set_termios complete, which uses sync
usb_control_msg calls.
Unfortunately, I've not found data-sheet for FT232 describing USB
protocol, so I would like to ask whether it is guaranteed that new
settings are applied in hardware before ftdi_set_termios returns?

-- 
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp://0x2...@jabber.ru
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html