Skip to content

Commit

Permalink
serial: stm32: add RTS support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bich HEMON authored and Greg Kroah-Hartman committed Jul 30, 2017
1 parent cc7aefd commit 35abe98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/stm32-usart.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 35abe98

Please sign in to comment.