From ab03a907fe66838bb5dc3f34e555648d289e2b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Dziemiaszko?= Date: Thu, 9 Oct 2025 16:34:30 +0200 Subject: [PATCH] drivers: uart_mcux_flexcomm: fix dma rx config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DMA configurations for TX and RX were mixed-up letting the DMA RX channel not fully configured. This fix correctly configures the DMA RX channel with DMA_ADDR_ADJ_NO_CHANGE. Signed-off-by: Rémy Dziemiaszko --- drivers/serial/uart_mcux_flexcomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_mcux_flexcomm.c b/drivers/serial/uart_mcux_flexcomm.c index 8a684d92c839b..f0cae8ee912ea 100644 --- a/drivers/serial/uart_mcux_flexcomm.c +++ b/drivers/serial/uart_mcux_flexcomm.c @@ -661,7 +661,7 @@ static int mcux_flexcomm_uart_rx_enable(const struct device *dev, uint8_t *buf, data->rx_data.xfer_len = len; data->rx_data.active_block.dest_address = (uint32_t)data->rx_data.xfer_buf; data->rx_data.active_block.source_address = (uint32_t) &config->base->FIFORD; - data->tx_data.active_block.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; + data->rx_data.active_block.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; data->rx_data.active_block.block_size = data->rx_data.xfer_len; ret = dma_config(config->rx_dma.dev, config->rx_dma.channel,