Skip to content

Commit 0370791

Browse files
committed
drivers: uart_mcux_flexcomm: fix dma rx config
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 <[email protected]>
1 parent 6614a3a commit 0370791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_mcux_flexcomm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ static int mcux_flexcomm_uart_rx_enable(const struct device *dev, uint8_t *buf,
660660
data->rx_data.xfer_len = len;
661661
data->rx_data.active_block.dest_address = (uint32_t)data->rx_data.xfer_buf;
662662
data->rx_data.active_block.source_address = (uint32_t) &config->base->FIFORD;
663-
data->tx_data.active_block.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE;
663+
data->rx_data.active_block.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE;
664664
data->rx_data.active_block.block_size = data->rx_data.xfer_len;
665665

666666
ret = dma_config(config->rx_dma.dev, config->rx_dma.channel,

0 commit comments

Comments
 (0)