summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/vt8500_serial.c
diff options
context:
space:
mode:
authorAlexey Charkov <alchark@gmail.com>2014-09-06 21:21:13 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-08 16:29:36 -0700
commit8c986d3e20bcbf33c680130a5798f25429c53e31 (patch)
treec78a5a2d89b6289ba7c9bcf8fc05d5414da0034d /drivers/tty/serial/vt8500_serial.c
parentae382735247e2daebeed3bafd400ff71039d2241 (diff)
downloadtalos-op-linux-8c986d3e20bcbf33c680130a5798f25429c53e31.tar.gz
talos-op-linux-8c986d3e20bcbf33c680130a5798f25429c53e31.zip
tty: vt8500_serial: add missing support for RTS setting
Signed-off-by: Alexey Charkov <alchark@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/vt8500_serial.c')
-rw-r--r--drivers/tty/serial/vt8500_serial.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/tty/serial/vt8500_serial.c b/drivers/tty/serial/vt8500_serial.c
index f22571915185..47e74f9b01ae 100644
--- a/drivers/tty/serial/vt8500_serial.c
+++ b/drivers/tty/serial/vt8500_serial.c
@@ -291,6 +291,14 @@ static unsigned int vt8500_get_mctrl(struct uart_port *port)
static void vt8500_set_mctrl(struct uart_port *port, unsigned int mctrl)
{
+ unsigned int lcr = vt8500_read(port, VT8500_URLCR);
+
+ if (mctrl & TIOCM_RTS)
+ lcr |= VT8500_RTS;
+ else
+ lcr &= ~VT8500_RTS;
+
+ vt8500_write(port, lcr, VT8500_URLCR);
}
static void vt8500_break_ctl(struct uart_port *port, int break_ctl)
OpenPOWER on IntegriCloud