diff options
author | Laurentiu Tudor <laurentiu.tudor@nxp.com> | 2019-01-18 13:06:23 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-02-04 10:02:53 +0300 |
commit | 0fa89f972da607540497f11afbb47af6fea5bce0 (patch) | |
tree | b5280ac2761f300c28447ff595ae46088ab92ee8 /drivers/dma/mcf-edma.c | |
parent | de1fa4f61be71725581c8e30f3665aaa20d1610e (diff) | |
download | linux-0fa89f972da607540497f11afbb47af6fea5bce0.tar.xz |
dmaengine: fsl-edma: dma map slave device address
This mapping needs to be created in order for slave dma transfers
to work on systems with SMMU. The implementation mostly mimics the
one in pl330 dma driver, authored by Robin Murphy.
Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Suggested-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/mcf-edma.c')
-rw-r--r-- | drivers/dma/mcf-edma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/mcf-edma.c b/drivers/dma/mcf-edma.c index 5de1b07eddff..7de54b2fafdb 100644 --- a/drivers/dma/mcf-edma.c +++ b/drivers/dma/mcf-edma.c @@ -214,6 +214,7 @@ static int mcf_edma_probe(struct platform_device *pdev) mcf_chan->edma = mcf_edma; mcf_chan->slave_id = i; mcf_chan->idle = true; + mcf_chan->dma_dir = DMA_NONE; mcf_chan->vchan.desc_free = fsl_edma_free_desc; vchan_init(&mcf_chan->vchan, &mcf_edma->dma_dev); iowrite32(0x0, ®s->tcd[i].csr); |