aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-25 10:07:46 -0500
committerVinod Koul <vinod.koul@intel.com>2013-12-15 22:48:47 -0500
commitb714b84e2b74de68b12847bcaf2cf409a18fb741 (patch)
tree7f43330570b76e769a1a027fba30f00d772b892d /drivers/dma
parent319e2e3f63c348a9b66db4667efa73178e18b17d (diff)
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: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pl330.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index cdf0483b8f2d..7adaf3abffba 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -578,6 +578,9 @@ struct dma_pl330_dmac {
578 /* DMA-Engine Device */ 578 /* DMA-Engine Device */
579 struct dma_device ddma; 579 struct dma_device ddma;
580 580
581 /* Holds info about sg limitations */
582 struct device_dma_parameters dma_parms;
583
581 /* Pool of descriptors available for the DMAC's channels */ 584 /* Pool of descriptors available for the DMAC's channels */
582 struct list_head desc_pool; 585 struct list_head desc_pool;
583 /* To protect desc_pool manipulation */ 586 /* To protect desc_pool manipulation */
@@ -3023,6 +3026,9 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
3023 "unable to register DMA to the generic DT DMA helpers\n"); 3026 "unable to register DMA to the generic DT DMA helpers\n");
3024 } 3027 }
3025 } 3028 }
3029
3030 adev->dev.dma_parms = &pdmac->dma_parms;
3031
3026 /* 3032 /*
3027 * This is the limit for transfers with a buswidth of 1, larger 3033 * This is the limit for transfers with a buswidth of 1, larger
3028 * buswidths will have larger limits. 3034 * buswidths will have larger limits.