Revert "drivers: serial: uart_mcux_lpuart: fix IRQ-driven API with ASYNC_API"

This reverts commit a80fa5163b.

That commit broke the polling API when used with the interrupt driven,
it is completely wrong to disable the receiver from irq_rx_disable,
the uart_basic_api test has been broken on all lpuart platforms because
of this bug.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-04-24 17:51:18 -05:00 committed by Alberto Escolar
parent 262af5645c
commit dfe4991a2c

View file

@ -310,7 +310,6 @@ static void mcux_lpuart_irq_rx_enable(const struct device *dev)
uint32_t mask = kLPUART_RxDataRegFullInterruptEnable;
LPUART_EnableInterrupts(config->base, mask);
LPUART_EnableRx(config->base, true);
}
static void mcux_lpuart_irq_rx_disable(const struct device *dev)
@ -318,7 +317,6 @@ static void mcux_lpuart_irq_rx_disable(const struct device *dev)
const struct mcux_lpuart_config *config = dev->config;
uint32_t mask = kLPUART_RxDataRegFullInterruptEnable;
LPUART_EnableRx(config->base, false);
LPUART_DisableInterrupts(config->base, mask);
}