drivers/serial: stm32: Revert change in uart_irq_rx_ready

In #31192 stm32 uart driver uart_irq_rx/tx_ready functions were
modified to take into account status of irq.
While it seems wlecome for TX (based on uart client's implementation),
this is not correct for RX.
Revert change in uart_stm32_irq_rx_ready function.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-01-15 14:10:40 +01:00 committed by Anas Nashif
commit 2b0311d903

View file

@ -565,8 +565,7 @@ static int uart_stm32_irq_rx_ready(const struct device *dev)
{ {
USART_TypeDef *UartInstance = UART_STRUCT(dev); USART_TypeDef *UartInstance = UART_STRUCT(dev);
return LL_USART_IsActiveFlag_RXNE(UartInstance) && return LL_USART_IsActiveFlag_RXNE(UartInstance);
LL_USART_IsEnabledIT_RXNE(UartInstance);
} }
static void uart_stm32_irq_err_enable(const struct device *dev) static void uart_stm32_irq_err_enable(const struct device *dev)