]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: stm32: fix transmit_chars when tx is stopped
authorErwan Le Ray <erwan.leray@st.com>
Tue, 21 May 2019 15:45:44 +0000 (17:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 07:58:29 +0000 (09:58 +0200)
commitb83b957c91f68e53f0dc596e129e8305761f2a32
tree74d6ae2adef3806bcce6ea59f5d9639e72abec74
parent6c5962f30bce147b1c83869085f3ddde3b34c9e3
serial: stm32: fix transmit_chars when tx is stopped

Disables the tx irq  when the transmission is ended and updates stop_tx
conditions for code cleanup.

Fixes: 48a6092fb41f ("serial: stm32-usart: Add STM32 USART Driver")
Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c