diff options
author | Vinod Koul <vinod.koul@linux.intel.com> | 2011-11-17 04:24:38 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2011-11-17 04:24:57 -0500 |
commit | e0d23ef29ed637dc6bd739f590985746d9ad9caa (patch) | |
tree | c5b5856dc88582697997bb10ccacad6fc2535465 /drivers/tty | |
parent | ca7fe2db892dcf91b2c72ee352eda4ff867903a7 (diff) | |
parent | 55ba4e5ed4ac57b60fe56acfd324f6a87123cc34 (diff) |
Merge branch 'dma_slave_direction' into next_test_dirn
resolved conflicts:
drivers/media/video/mx3_camera.c
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 8 | ||||
-rw-r--r-- | drivers/tty/serial/pch_uart.c | 4 | ||||
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 00233af1acc4..e4d5a21e1a63 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c | |||
@@ -268,7 +268,7 @@ static void pl011_dma_probe_initcall(struct uart_amba_port *uap) | |||
268 | struct dma_slave_config tx_conf = { | 268 | struct dma_slave_config tx_conf = { |
269 | .dst_addr = uap->port.mapbase + UART01x_DR, | 269 | .dst_addr = uap->port.mapbase + UART01x_DR, |
270 | .dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE, | 270 | .dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE, |
271 | .direction = DMA_TO_DEVICE, | 271 | .direction = DMA_MEM_TO_DEV, |
272 | .dst_maxburst = uap->fifosize >> 1, | 272 | .dst_maxburst = uap->fifosize >> 1, |
273 | }; | 273 | }; |
274 | struct dma_chan *chan; | 274 | struct dma_chan *chan; |
@@ -301,7 +301,7 @@ static void pl011_dma_probe_initcall(struct uart_amba_port *uap) | |||
301 | struct dma_slave_config rx_conf = { | 301 | struct dma_slave_config rx_conf = { |
302 | .src_addr = uap->port.mapbase + UART01x_DR, | 302 | .src_addr = uap->port.mapbase + UART01x_DR, |
303 | .src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE, | 303 | .src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE, |
304 | .direction = DMA_FROM_DEVICE, | 304 | .direction = DMA_DEV_TO_MEM, |
305 | .src_maxburst = uap->fifosize >> 1, | 305 | .src_maxburst = uap->fifosize >> 1, |
306 | }; | 306 | }; |
307 | 307 | ||
@@ -480,7 +480,7 @@ static int pl011_dma_tx_refill(struct uart_amba_port *uap) | |||
480 | return -EBUSY; | 480 | return -EBUSY; |
481 | } | 481 | } |
482 | 482 | ||
483 | desc = dma_dev->device_prep_slave_sg(chan, &dmatx->sg, 1, DMA_TO_DEVICE, | 483 | desc = dma_dev->device_prep_slave_sg(chan, &dmatx->sg, 1, DMA_MEM_TO_DEV, |
484 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 484 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
485 | if (!desc) { | 485 | if (!desc) { |
486 | dma_unmap_sg(dma_dev->dev, &dmatx->sg, 1, DMA_TO_DEVICE); | 486 | dma_unmap_sg(dma_dev->dev, &dmatx->sg, 1, DMA_TO_DEVICE); |
@@ -676,7 +676,7 @@ static int pl011_dma_rx_trigger_dma(struct uart_amba_port *uap) | |||
676 | &uap->dmarx.sgbuf_b : &uap->dmarx.sgbuf_a; | 676 | &uap->dmarx.sgbuf_b : &uap->dmarx.sgbuf_a; |
677 | dma_dev = rxchan->device; | 677 | dma_dev = rxchan->device; |
678 | desc = rxchan->device->device_prep_slave_sg(rxchan, &sgbuf->sg, 1, | 678 | desc = rxchan->device->device_prep_slave_sg(rxchan, &sgbuf->sg, 1, |
679 | DMA_FROM_DEVICE, | 679 | DMA_DEV_TO_MEM, |
680 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 680 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
681 | /* | 681 | /* |
682 | * If the DMA engine is busy and cannot prepare a | 682 | * If the DMA engine is busy and cannot prepare a |
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 21febef926aa..6b8019c5b36d 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c | |||
@@ -749,7 +749,7 @@ static int dma_handle_rx(struct eg20t_port *priv) | |||
749 | sg_dma_address(sg) = priv->rx_buf_dma; | 749 | sg_dma_address(sg) = priv->rx_buf_dma; |
750 | 750 | ||
751 | desc = priv->chan_rx->device->device_prep_slave_sg(priv->chan_rx, | 751 | desc = priv->chan_rx->device->device_prep_slave_sg(priv->chan_rx, |
752 | sg, 1, DMA_FROM_DEVICE, | 752 | sg, 1, DMA_DEV_TO_MEM, |
753 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 753 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
754 | 754 | ||
755 | if (!desc) | 755 | if (!desc) |
@@ -908,7 +908,7 @@ static unsigned int dma_handle_tx(struct eg20t_port *priv) | |||
908 | } | 908 | } |
909 | 909 | ||
910 | desc = priv->chan_tx->device->device_prep_slave_sg(priv->chan_tx, | 910 | desc = priv->chan_tx->device->device_prep_slave_sg(priv->chan_tx, |
911 | priv->sg_tx_p, nent, DMA_TO_DEVICE, | 911 | priv->sg_tx_p, nent, DMA_MEM_TO_DEV, |
912 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 912 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
913 | if (!desc) { | 913 | if (!desc) { |
914 | dev_err(priv->port.dev, "%s:device_prep_slave_sg Failed\n", | 914 | dev_err(priv->port.dev, "%s:device_prep_slave_sg Failed\n", |
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 1945c70539c2..9900e8560452 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -1214,7 +1214,7 @@ static void sci_submit_rx(struct sci_port *s) | |||
1214 | struct dma_async_tx_descriptor *desc; | 1214 | struct dma_async_tx_descriptor *desc; |
1215 | 1215 | ||
1216 | desc = chan->device->device_prep_slave_sg(chan, | 1216 | desc = chan->device->device_prep_slave_sg(chan, |
1217 | sg, 1, DMA_FROM_DEVICE, DMA_PREP_INTERRUPT); | 1217 | sg, 1, DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT); |
1218 | 1218 | ||
1219 | if (desc) { | 1219 | if (desc) { |
1220 | s->desc_rx[i] = desc; | 1220 | s->desc_rx[i] = desc; |
@@ -1329,7 +1329,7 @@ static void work_fn_tx(struct work_struct *work) | |||
1329 | BUG_ON(!sg_dma_len(sg)); | 1329 | BUG_ON(!sg_dma_len(sg)); |
1330 | 1330 | ||
1331 | desc = chan->device->device_prep_slave_sg(chan, | 1331 | desc = chan->device->device_prep_slave_sg(chan, |
1332 | sg, s->sg_len_tx, DMA_TO_DEVICE, | 1332 | sg, s->sg_len_tx, DMA_MEM_TO_DEV, |
1333 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 1333 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
1334 | if (!desc) { | 1334 | if (!desc) { |
1335 | /* switch to PIO */ | 1335 | /* switch to PIO */ |