drivers: serial: stm32: renable IT RXNE as part of graceful disable

async_rx_disable does not re-anable RXNE interrupt, it was disabled
during async_rx_enable

Signed-off-by: Manojkumar Subramaniam <manoj@electrolance.com>
This commit is contained in:
Manojkumar Subramaniam 2021-08-23 02:04:05 +08:00 committed by Christopher Friedt
parent a35cc75c14
commit d79d26f1ae

View file

@ -977,6 +977,9 @@ static int uart_stm32_async_rx_disable(const struct device *dev)
data->rx_next_buffer = NULL;
data->rx_next_buffer_len = 0;
/*when async rx is disabled, enable interruptable instance of uart to function normally*/
LL_USART_EnableIT_RXNE(UartInstance);
LOG_DBG("rx: disabled");
async_user_callback(data, &disabled_event);