From: Bich HEMON Date: Thu, 13 Jul 2017 15:08:28 +0000 (+0000) Subject: serial: stm32: add RTS support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=35abe98f15ed60d252f79da6e41b477527af8b2f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git serial: stm32: add RTS support Implement support of RTS in USART control register Signed-off-by: Bich Hemon Signed-off-by: Greg Kroah-Hartman --- 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);