summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/stm32-usart.c
diff options
context:
space:
mode:
authorBich HEMON <bich.hemon@st.com>2017-07-13 18:08:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-30 17:32:31 +0300
commit35abe98f15ed60d252f79da6e41b477527af8b2f (patch)
treede51d703977da1d95f30068e23f342efc037f690 /drivers/tty/serial/stm32-usart.c
parentcc7aefd4fa6c0e12301a923b629f49bfbaaac6b1 (diff)
downloadlinux-35abe98f15ed60d252f79da6e41b477527af8b2f.tar.xz
serial: stm32: add RTS support
Implement support of RTS in USART control register Signed-off-by: Bich Hemon <bich.hemon@st.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/stm32-usart.c')
-rw-r--r--drivers/tty/serial/stm32-usart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c
index a12d79cfe607..2fca2d2a83cc 100644
--- a/drivers/tty/serial/stm32-usart.c
+++ b/drivers/tty/serial/stm32-usart.c
@@ -518,7 +518,7 @@ static void stm32_set_termios(struct uart_port *port, struct ktermios *termios,
port->status &= ~(UPSTAT_AUTOCTS | UPSTAT_AUTORTS);
if (cflag & CRTSCTS) {
port->status |= UPSTAT_AUTOCTS | UPSTAT_AUTORTS;
- cr3 |= USART_CR3_CTSE;
+ cr3 |= USART_CR3_CTSE | USART_CR3_RTSE;
}
usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud);