diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-12 12:12:31 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-31 12:32:52 +0100 |
commit | b9b3f82f94b52ebb0bbdf6cd77ccc5e8ee3f53b5 (patch) | |
tree | 6ea87b15f9f74327c202fc5aa72e6199897c176d /drivers/dma | |
parent | 1bae4ce27c9c90344f23c65ea6966c50ffeae2f5 (diff) | |
download | kernel_samsung_smdk4412-b9b3f82f94b52ebb0bbdf6cd77ccc5e8ee3f53b5.zip kernel_samsung_smdk4412-b9b3f82f94b52ebb0bbdf6cd77ccc5e8ee3f53b5.tar.gz kernel_samsung_smdk4412-b9b3f82f94b52ebb0bbdf6cd77ccc5e8ee3f53b5.tar.bz2 |
dmaengine i.MX sdma: 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-sdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index d5a5d4d..c503050 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -301,6 +301,7 @@ struct sdma_firmware_header { struct sdma_engine { struct device *dev; + struct device_dma_parameters dma_parms; struct sdma_channel channel[MAX_DMA_CHANNELS]; struct sdma_channel_control *channel_control; void __iomem *regs; @@ -1317,6 +1318,8 @@ static int __init sdma_probe(struct platform_device *pdev) sdma->dma_device.device_prep_dma_cyclic = sdma_prep_dma_cyclic; sdma->dma_device.device_control = sdma_control; sdma->dma_device.device_issue_pending = sdma_issue_pending; + sdma->dma_device.dev->dma_parms = &sdma->dma_parms; + dma_set_max_seg_size(sdma->dma_device.dev, 65535); ret = dma_async_device_register(&sdma->dma_device); if (ret) { |