lkml.org 
[lkml]   [2017]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/20] serial: stm32: add RTS support
    Date
    From: Bich Hemon <bich.hemon@st.com>

    Signed-off-by: Bich Hemon <bich.hemon@st.com>
    ---
    drivers/tty/serial/stm32-usart.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c
    index 13fc520..a7401b0 100644
    --- a/drivers/tty/serial/stm32-usart.c
    +++ b/drivers/tty/serial/stm32-usart.c
    @@ -617,7 +617,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);
    --
    1.9.1
    \
     
     \ /
      Last update: 2017-06-26 14:55    [W:2.607 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site