diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-12 07:14:37 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-31 06:35:52 -0500 |
commit | 1e070a60997f5bbaadd498c34380e2aa110336cf (patch) | |
tree | a590491c8bcc33851553b5d70cfa4eb2ae4640be /drivers/dma | |
parent | 1bae4ce27c9c90344f23c65ea6966c50ffeae2f5 (diff) |
dmaengine i.MX dma: set maximum segment size for our device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-dma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index e53d438142bb..a46e1d9fa3e4 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c | |||
@@ -49,6 +49,7 @@ struct imxdma_channel { | |||
49 | 49 | ||
50 | struct imxdma_engine { | 50 | struct imxdma_engine { |
51 | struct device *dev; | 51 | struct device *dev; |
52 | struct device_dma_parameters dma_parms; | ||
52 | struct dma_device dma_device; | 53 | struct dma_device dma_device; |
53 | struct imxdma_channel channel[MAX_DMA_CHANNELS]; | 54 | struct imxdma_channel channel[MAX_DMA_CHANNELS]; |
54 | }; | 55 | }; |
@@ -370,6 +371,9 @@ static int __init imxdma_probe(struct platform_device *pdev) | |||
370 | 371 | ||
371 | platform_set_drvdata(pdev, imxdma); | 372 | platform_set_drvdata(pdev, imxdma); |
372 | 373 | ||
374 | imxdma->dma_device.dev->dma_parms = &imxdma->dma_parms; | ||
375 | dma_set_max_seg_size(imxdma->dma_device.dev, 0xffffff); | ||
376 | |||
373 | ret = dma_async_device_register(&imxdma->dma_device); | 377 | ret = dma_async_device_register(&imxdma->dma_device); |
374 | if (ret) { | 378 | if (ret) { |
375 | dev_err(&pdev->dev, "unable to register\n"); | 379 | dev_err(&pdev->dev, "unable to register\n"); |