Skip to content
Commit 7388970c authored by Dawid Niedzwiecki's avatar Dawid Niedzwiecki Committed by Carles Cufí
Browse files

serial: stm32: do not clear TC flag in async mode



The Transfer Complete flag (TC) is used to check if a transfer is
complete. This mechanism is used before suspending the UART module to
make sure that all data are sent before the suspend procedure.

The UART ISR clears this flag after completion of a async transfer which
causes a hang during UART device suspend setup.

There is just no need to clear this flag in ISR, it is cleared every
time we start a new async transfer.

Signed-off-by: default avatarDawid Niedzwiecki <dawidn@google.com>
parent e6f77f9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment