aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/carma/carma-fpga-program.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-18 21:11:04 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-18 21:11:04 -0400
commit52d589a01d4545ce1dc5c3892bb8c7b55edfe714 (patch)
tree864858dae5d01aae411497e926679cf92392b4f6 /drivers/misc/carma/carma-fpga-program.c
parent0a582821d4f8edf41d9b56ae057ee2002fc275f0 (diff)
parent6b997bab20448cfe85456e4789d5d9222ab6b830 (diff)
Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma
Pull slave-dmaengine updates from Vinod Koul: "For dmaengine contributions we have: - designware cleanup by Andy - my series moving device_control users to dmanegine_xxx APIs for later removal of device_control API - minor fixes spread over drivers mainly mv_xor, pl330, mmp, imx-sdma etc" * 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (60 commits) serial: atmel: add missing dmaengine header dmaengine: remove FSLDMA_EXTERNAL_START dmaengine: freescale: remove FSLDMA_EXTERNAL_START control method carma-fpga: move to fsl_dma_external_start() carma-fpga: use dmaengine_xxx() API dmaengine: freescale: add and export fsl_dma_external_start() dmaengine: add dmaengine_prep_dma_sg() helper video: mx3fb: use dmaengine_terminate_all() API serial: sh-sci: use dmaengine_terminate_all() API net: ks8842: use dmaengine_terminate_all() API mtd: sh_flctl: use dmaengine_terminate_all() API mtd: fsmc_nand: use dmaengine_terminate_all() API V4L2: mx3_camer: use dmaengine_pause() API dmaengine: coh901318: use dmaengine_terminate_all() API pata_arasan_cf: use dmaengine_terminate_all() API dmaengine: edma: check for echan->edesc => NULL in edma_dma_pause() dmaengine: dw: export probe()/remove() and Co to users dmaengine: dw: enable and disable controller when needed dmaengine: dw: always export dw_dma_{en,dis}able dmaengine: dw: introduce dw_dma_on() helper ...
Diffstat (limited to 'drivers/misc/carma/carma-fpga-program.c')
-rw-r--r--drivers/misc/carma/carma-fpga-program.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/misc/carma/carma-fpga-program.c b/drivers/misc/carma/carma-fpga-program.c
index 7e97e53f9ff2..339b252fcedd 100644
--- a/drivers/misc/carma/carma-fpga-program.c
+++ b/drivers/misc/carma/carma-fpga-program.c
@@ -16,6 +16,7 @@
16#include <linux/completion.h> 16#include <linux/completion.h>
17#include <linux/miscdevice.h> 17#include <linux/miscdevice.h>
18#include <linux/dmaengine.h> 18#include <linux/dmaengine.h>
19#include <linux/fsldma.h>
19#include <linux/interrupt.h> 20#include <linux/interrupt.h>
20#include <linux/highmem.h> 21#include <linux/highmem.h>
21#include <linux/kernel.h> 22#include <linux/kernel.h>
@@ -518,23 +519,22 @@ static noinline int fpga_program_dma(struct fpga_dev *priv)
518 config.direction = DMA_MEM_TO_DEV; 519 config.direction = DMA_MEM_TO_DEV;
519 config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; 520 config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
520 config.dst_maxburst = fpga_fifo_size(priv->regs) / 2 / 4; 521 config.dst_maxburst = fpga_fifo_size(priv->regs) / 2 / 4;
521 ret = chan->device->device_control(chan, DMA_SLAVE_CONFIG, 522 ret = dmaengine_slave_config(chan, &config);
522 (unsigned long)&config);
523 if (ret) { 523 if (ret) {
524 dev_err(priv->dev, "DMA slave configuration failed\n"); 524 dev_err(priv->dev, "DMA slave configuration failed\n");
525 goto out_dma_unmap; 525 goto out_dma_unmap;
526 } 526 }
527 527
528 ret = chan->device->device_control(chan, FSLDMA_EXTERNAL_START, 1); 528 ret = fsl_dma_external_start(chan, 1)
529 if (ret) { 529 if (ret) {
530 dev_err(priv->dev, "DMA external control setup failed\n"); 530 dev_err(priv->dev, "DMA external control setup failed\n");
531 goto out_dma_unmap; 531 goto out_dma_unmap;
532 } 532 }
533 533
534 /* setup and submit the DMA transaction */ 534 /* setup and submit the DMA transaction */
535 tx = chan->device->device_prep_dma_sg(chan, 535
536 table.sgl, num_pages, 536 tx = dmaengine_prep_dma_sg(chan, table.sgl, num_pages,
537 vb->sglist, vb->sglen, 0); 537 vb->sglist, vb->sglen, 0);
538 if (!tx) { 538 if (!tx) {
539 dev_err(priv->dev, "Unable to prep DMA transaction\n"); 539 dev_err(priv->dev, "Unable to prep DMA transaction\n");
540 ret = -ENOMEM; 540 ret = -ENOMEM;