mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
dmaengine i.MX dma: set maximum segment size for our device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
1bae4ce27c
commit
1e070a6099
@ -49,6 +49,7 @@ struct imxdma_channel {
|
|||||||
|
|
||||||
struct imxdma_engine {
|
struct imxdma_engine {
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
struct device_dma_parameters dma_parms;
|
||||||
struct dma_device dma_device;
|
struct dma_device dma_device;
|
||||||
struct imxdma_channel channel[MAX_DMA_CHANNELS];
|
struct imxdma_channel channel[MAX_DMA_CHANNELS];
|
||||||
};
|
};
|
||||||
@ -370,6 +371,9 @@ static int __init imxdma_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
platform_set_drvdata(pdev, imxdma);
|
platform_set_drvdata(pdev, imxdma);
|
||||||
|
|
||||||
|
imxdma->dma_device.dev->dma_parms = &imxdma->dma_parms;
|
||||||
|
dma_set_max_seg_size(imxdma->dma_device.dev, 0xffffff);
|
||||||
|
|
||||||
ret = dma_async_device_register(&imxdma->dma_device);
|
ret = dma_async_device_register(&imxdma->dma_device);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&pdev->dev, "unable to register\n");
|
dev_err(&pdev->dev, "unable to register\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user