提交 a14f66a4 编写于 作者: A Alexandre TORGUE 提交者: Greg Kroah-Hartman

serial: stm32: disable tx and rx during shutdown

Signed-off-by: NGerald Baeza <gerald.baeza@st.com>
Signed-off-by: NAlexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 bc5a0b55
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册