Commit b714b84e authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Vinod Koul

dma: pl330: Alloc dma_parms for the dma device

In order to be able to set a maximum segment size for the device we need to
allocate a dma_parameters struct for the device first.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 319e2e3f
...@@ -578,6 +578,9 @@ struct dma_pl330_dmac { ...@@ -578,6 +578,9 @@ struct dma_pl330_dmac {
/* DMA-Engine Device */ /* DMA-Engine Device */
struct dma_device ddma; struct dma_device ddma;
/* Holds info about sg limitations */
struct device_dma_parameters dma_parms;
/* Pool of descriptors available for the DMAC's channels */ /* Pool of descriptors available for the DMAC's channels */
struct list_head desc_pool; struct list_head desc_pool;
/* To protect desc_pool manipulation */ /* To protect desc_pool manipulation */
...@@ -3023,6 +3026,9 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) ...@@ -3023,6 +3026,9 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
"unable to register DMA to the generic DT DMA helpers\n"); "unable to register DMA to the generic DT DMA helpers\n");
} }
} }
adev->dev.dma_parms = &pdmac->dma_parms;
/* /*
* This is the limit for transfers with a buswidth of 1, larger * This is the limit for transfers with a buswidth of 1, larger
* buswidths will have larger limits. * buswidths will have larger limits.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment