aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/imx-dma.c
diff options
context:
space:
mode:
authorAlexandre Bounine <alexandre.bounine@idt.com>2012-03-08 15:35:13 -0500
committerVinod Koul <vinod.koul@linux.intel.com>2012-03-21 09:50:23 -0400
commit185ecb5f4fd43911c35956d4cc7d94a1da30417f (patch)
treeebbdb7f15157d19d8af892cd7948d93947d09ec2 /drivers/dma/imx-dma.c
parent16052827d98fbc13c31ebad560af4bd53e2b4dd5 (diff)
dmaengine: add context parameter to prep_slave_sg and prep_dma_cyclic
Add context parameter to device_prep_slave_sg() and device_prep_dma_cyclic() interfaces to allow passing client/target specific information associated with the data transfer. Modify all affected DMA engine drivers. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/imx-dma.c')
-rw-r--r--drivers/dma/imx-dma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index 20c1565a7486..304839a99ae5 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -354,7 +354,7 @@ static void imxdma_free_chan_resources(struct dma_chan *chan)
354static struct dma_async_tx_descriptor *imxdma_prep_slave_sg( 354static struct dma_async_tx_descriptor *imxdma_prep_slave_sg(
355 struct dma_chan *chan, struct scatterlist *sgl, 355 struct dma_chan *chan, struct scatterlist *sgl,
356 unsigned int sg_len, enum dma_transfer_direction direction, 356 unsigned int sg_len, enum dma_transfer_direction direction,
357 unsigned long flags) 357 unsigned long flags, void *context)
358{ 358{
359 struct imxdma_channel *imxdmac = to_imxdma_chan(chan); 359 struct imxdma_channel *imxdmac = to_imxdma_chan(chan);
360 struct scatterlist *sg; 360 struct scatterlist *sg;
@@ -405,7 +405,8 @@ static struct dma_async_tx_descriptor *imxdma_prep_slave_sg(
405 405
406static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic( 406static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic(
407 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, 407 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
408 size_t period_len, enum dma_transfer_direction direction) 408 size_t period_len, enum dma_transfer_direction direction,
409 void *context)
409{ 410{
410 struct imxdma_channel *imxdmac = to_imxdma_chan(chan); 411 struct imxdma_channel *imxdmac = to_imxdma_chan(chan);
411 struct imxdma_engine *imxdma = imxdmac->imxdma; 412 struct imxdma_engine *imxdma = imxdmac->imxdma;