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: Dawid Niedzwiecki <dawidn@google.com>
This commit is contained in:
parent
e6f77f9b73
commit
7388970c85
1 changed files with 0 additions and 1 deletions
|
@ -1257,7 +1257,6 @@ static void uart_stm32_isr(const struct device *dev)
|
|||
LL_USART_IsActiveFlag_TC(config->usart)) {
|
||||
|
||||
LL_USART_DisableIT_TC(config->usart);
|
||||
LL_USART_ClearFlag_TC(config->usart);
|
||||
/* Generate TX_DONE event when transmission is done */
|
||||
async_evt_tx_done(data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue