diff options
author | Huang Shijie <b32955@freescale.com> | 2012-04-16 10:54:12 +0800 |
---|---|---|
committer | Frank Li <Frank.Li@freescale.com> | 2012-04-16 15:28:04 +0800 |
commit | dd6dfd484dac1df308cef87f5bcf064b3d25cf66 (patch) | |
tree | c09a223f5cccad34209c0965361390567f32e32a /drivers/tty | |
parent | f8643e00fc4b405dfd69cbc9ab2b1584a503311e (diff) |
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 <b32955@freescale.com>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |