diff options
author | Erwan Le Ray <erwan.leray@st.com> | 2019-05-21 17:45:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-24 09:58:29 +0200 |
commit | 64c32eab660386f9904bb295a104c9c425e9f8b2 (patch) | |
tree | c04d6032038a507e27f2730f7ffb189cde4d4961 /security | |
parent | serial: stm32: fix transmit_chars when tx is stopped (diff) | |
download | linux-64c32eab660386f9904bb295a104c9c425e9f8b2.tar.xz linux-64c32eab660386f9904bb295a104c9c425e9f8b2.zip |
serial: stm32: Add support of TC bit status check
Adds a check on the Transmission Complete bit status before closing the
com port. Prevents the port closure before the end of the transmission.
TC poll loop is moved from stm32_tx_dma_complete to stm32_shutdown
routine, in order to check TC before shutdown in both dma and
PIO tx modes.
TC clear is added in stm32_transmit_char routine, in order to be cleared
before transmitting in both dma and PIO tx modes.
Fixes: 3489187204eb ("serial: stm32: adding dma support")
Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions