OSDN Git Service

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>
Mon, 27 Jan 2020 13:50:50 +0000 (14:50 +0100)
commit04db09549b692f8d8d8af76ce4efa4aaaa344a52
tree5709724ebdb10833e7aaa7b1345b686956b329a9
parent1537b1a0dad5cdf5eff10c88111e05b68e8ee15c
serial: stm32: fix transmit_chars when tx is stopped

[ Upstream commit b83b957c91f68e53f0dc596e129e8305761f2a32 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/stm32-usart.c