diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-12 17:59:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-12 17:59:53 -0500 |
commit | 87c779baabff157f09db6fce417a7544220f9f00 (patch) | |
tree | 3a11ac4b554a3fe52d331f1f4f72997582e87cac /drivers/dma/pl330.c | |
parent | eea0cf3fcd3243666e0bb792c560ec128b1f06a1 (diff) | |
parent | a9507ca3fb90987db5c6cc385885782cb05d4967 (diff) |
Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma
Pull dmaengine updates from Vinod Koul:
"Main features this time are:
- BAM v1.3.0 support form qcom bam dma
- support for Allwinner sun8i dma
- atmels eXtended DMA Controller driver
- chancnt cleanup by Maxime
- fixes spread over drivers"
* 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (56 commits)
dmaenegine: Delete a check before free_percpu()
dmaengine: ioatdma: fix dma mapping errors
dma: cppi41: add a delay while setting the TD bit
dma: cppi41: wait longer for the HW to return the descriptor
dmaengine: fsl-edma: fixup reg offset and hw S/G support in big-endian model
dmaengine: fsl-edma: fix calculation of remaining bytes
drivers/dma/pch_dma: declare pch_dma_id_table as static
dmaengine: ste_dma40: fix error return code
dma: imx-sdma: clarify about firmware not found error
Documentation: devicetree: Fix Xilinx VDMA specification
dmaengine: pl330: update author info
dmaengine: clarify the issue_pending expectations
dmaengine: at_xdmac: Add DMA_PRIVATE
ARM: dts: at_xdmac: fix bad value of dma-cells in documentation
dmaengine: at_xdmac: fix missing spin_unlock
dmaengine: at_xdmac: fix a bug in transfer residue computation
dmaengine: at_xdmac: fix software lockup at_xdmac_tx_status()
dmaengine: at_xdmac: remove chancnt affectation
dmaengine: at_xdmac: prefer usage of readl/writel_relaxed
dmaengine: xdmac: fix print warning on dma_addr_t variable
...
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r-- | drivers/dma/pl330.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 19a99743cf52..025b905f6db2 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -2619,6 +2619,9 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) | |||
2619 | return -ENOMEM; | 2619 | return -ENOMEM; |
2620 | } | 2620 | } |
2621 | 2621 | ||
2622 | pd = &pl330->ddma; | ||
2623 | pd->dev = &adev->dev; | ||
2624 | |||
2622 | pl330->mcbufsz = pdat ? pdat->mcbuf_sz : 0; | 2625 | pl330->mcbufsz = pdat ? pdat->mcbuf_sz : 0; |
2623 | 2626 | ||
2624 | res = &adev->res; | 2627 | res = &adev->res; |
@@ -2655,7 +2658,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) | |||
2655 | if (!add_desc(pl330, GFP_KERNEL, NR_DEFAULT_DESC)) | 2658 | if (!add_desc(pl330, GFP_KERNEL, NR_DEFAULT_DESC)) |
2656 | dev_warn(&adev->dev, "unable to allocate desc\n"); | 2659 | dev_warn(&adev->dev, "unable to allocate desc\n"); |
2657 | 2660 | ||
2658 | pd = &pl330->ddma; | ||
2659 | INIT_LIST_HEAD(&pd->channels); | 2661 | INIT_LIST_HEAD(&pd->channels); |
2660 | 2662 | ||
2661 | /* Initialize channel parameters */ | 2663 | /* Initialize channel parameters */ |
@@ -2692,7 +2694,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) | |||
2692 | list_add_tail(&pch->chan.device_node, &pd->channels); | 2694 | list_add_tail(&pch->chan.device_node, &pd->channels); |
2693 | } | 2695 | } |
2694 | 2696 | ||
2695 | pd->dev = &adev->dev; | ||
2696 | if (pdat) { | 2697 | if (pdat) { |
2697 | pd->cap_mask = pdat->cap_mask; | 2698 | pd->cap_mask = pdat->cap_mask; |
2698 | } else { | 2699 | } else { |
@@ -2819,6 +2820,6 @@ static struct amba_driver pl330_driver = { | |||
2819 | 2820 | ||
2820 | module_amba_driver(pl330_driver); | 2821 | module_amba_driver(pl330_driver); |
2821 | 2822 | ||
2822 | MODULE_AUTHOR("Jaswinder Singh <jassi.brar@samsung.com>"); | 2823 | MODULE_AUTHOR("Jaswinder Singh <jassisinghbrar@gmail.com>"); |
2823 | MODULE_DESCRIPTION("API Driver for PL330 DMAC"); | 2824 | MODULE_DESCRIPTION("API Driver for PL330 DMAC"); |
2824 | MODULE_LICENSE("GPL"); | 2825 | MODULE_LICENSE("GPL"); |