projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc7aefd
)
serial: stm32: add RTS support
author
Bich HEMON
<bich.hemon@st.com>
Thu, 13 Jul 2017 15:08:28 +0000
(15:08 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 14:32:31 +0000
(07:32 -0700)
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>
drivers/tty/serial/stm32-usart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/stm32-usart.c
b/drivers/tty/serial/stm32-usart.c
index
a12d79c
..
2fca2d2
100644
(file)
--- 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);