USB: f81232: implement set_termios()
authorPeter Hung <hpeter@gmail.com>
Tue, 17 Mar 2015 09:48:25 +0000 (17:48 +0800)
committerJohan Hovold <johan@kernel.org>
Fri, 27 Mar 2015 16:29:27 +0000 (17:29 +0100)
commit8bb4ca6b56bdf65944d0848561ea8dcf53a87507
tree93b35959b2195dd53f964ce24e6235ac03d9f0fa
parent94f87309fb12e3d41dbc56df899f3b357277d0bf
USB: f81232: implement set_termios()

The original driver had do not any h/w change in driver.
This patch implements with configure H/W for
baud/parity/word length/stop bits functional in f81232_set_termios().

This patch also implement DTR/RTS control when baudrate B0.
We drop DTR/RTS when B0, otherwise enable it.

We are checking baudrate in set_termios() too, If baudrate larger then 115200,
it will be changed to 115200 and use tty_encode_baud_rate() to encode into tty

Signed-off-by: Peter Hung <hpeter+linux_kernel@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/f81232.c
This page took 0.02536 seconds and 5 git commands to generate.