Skip to content
Commit db15de52 authored by Kamil Krzyżanowski's avatar Kamil Krzyżanowski Committed by Benjamin Cabé
Browse files

drivers: serial: stm32: fix race condition when both APIs enabled



Fix a bug where if CONFIG_UART_ASYNC_API was enabled in the config, the
interrupt flags would get cleared after the interrupt driven API callback
finished executing, causing data loss if data happened to arrive after the
callback but before the flags were cleared.

Signed-off-by: default avatarKamil Krzyżanowski <kamnxt@kamnxt.com>
parent 6191f131
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment