]> git.karo-electronics.de Git - linux-beck.git/commitdiff
serial: stm32: disable tx and rx during shutdown
authorAlexandre TORGUE <alexandre.torgue@st.com>
Thu, 15 Sep 2016 16:42:36 +0000 (18:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:48:55 +0000 (11:48 +0200)
Signed-off-by: Gerald Baeza <gerald.baeza@st.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c

index 6236deb289058f7a1f7f9ea22616343e10690b73..184b0183bb38af618f0d02cb084c37b4399e970c 100644 (file)
@@ -276,7 +276,7 @@ static void stm32_shutdown(struct uart_port *port)
        u32 val;
 
        val = USART_CR1_TXEIE | USART_CR1_RXNEIE | USART_CR1_TE | USART_CR1_RE;
-       stm32_set_bits(port, ofs->cr1, val);
+       stm32_clr_bits(port, ofs->cr1, val);
 
        free_irq(port->irq, port);
 }