]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Add software emulated RS485 support for 8250
authorMatwey V. Kornilov <matwey@sai.msu.ru>
Mon, 1 Feb 2016 18:09:21 +0000 (21:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:23:26 +0000 (22:23 -0800)
commit6d1cbaa2815d935b63d5b0c3a1bb6c4a154b8726
tree183cac3bb0d61e0637045d9973e628bd98d9009f
parenta5b12da27188647c5ee55a5fb8b1aff09bd0e1d6
tty: Add software emulated RS485 support for 8250

Implementation of software emulation of RS485 direction handling is based
on omap_serial driver.
Before and after transmission RTS is set to the appropriate value.

Note that before calling serial8250_em485_init() the caller has to
ensure that UART will interrupt when shift register empty. Otherwise,
emultaion cannot be used.

Both serial8250_em485_init() and serial8250_em485_destroy() are
idempotent functions.

Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250.h
drivers/tty/serial/8250/8250_port.c
include/linux/serial_8250.h