From: Huang Shijie Date: Mon, 16 Apr 2012 02:54:12 +0000 (+0800) Subject: ENGR00179696 MX6Q/UART : fix the wrong DMA tranfer direction. X-Git-Tag: v3.0.35-fsl~1177 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7a9a7543b5b21851037596620b450587c4772972;p=karo-tx-linux.git ENGR00179696 MX6Q/UART : fix the wrong DMA tranfer direction. The current SDMA use the new DMA tranfer direction. But the UART still uses the old. This cause the RX failed. So use the new DMA transfer direction for UART. Signed-off-by: Huang Shijie --- diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index f8cd9bd076ce..d65c589cef60 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -881,7 +881,7 @@ static int imx_uart_dma_init(struct imx_port *sport) goto err; } - slave_config.direction = DMA_FROM_DEVICE; + slave_config.direction = DMA_DEV_TO_MEM; slave_config.src_addr = sport->port.mapbase + URXD0; slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; slave_config.src_maxburst = RXTL; /* fix me */ @@ -908,7 +908,7 @@ static int imx_uart_dma_init(struct imx_port *sport) goto err; } - slave_config.direction = DMA_TO_DEVICE; + slave_config.direction = DMA_MEM_TO_DEV; slave_config.dst_addr = sport->port.mapbase + URTX0; slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; slave_config.dst_maxburst = TXTL; /* fix me */