diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-11 13:52:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-11 13:52:13 -0400 |
commit | 8fa5975900ba4e91e14a63f11fb7a026f60cecd5 (patch) | |
tree | 91171ea8afa319ff49d4e78474d882a0341bd4a9 /drivers/dma/cppi41.c | |
parent | 545124e7773fc2f5f0f9574e5763583f7920d872 (diff) | |
parent | ffeb13aab68e2d0082cbb147dc765beb092f83f4 (diff) |
Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma
Pull dmaengine fix from Vinod Koul:
"I have one more fix to fix the boot warning on cppi driver due to
missing capabilities"
* 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
dmaengine: cppi41: add missing bitfields
Diffstat (limited to 'drivers/dma/cppi41.c')
-rw-r--r-- | drivers/dma/cppi41.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index 512cb8e2805e..ceedafbd23e0 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c | |||
@@ -903,6 +903,11 @@ static const struct cppi_glue_infos *get_glue_info(struct device *dev) | |||
903 | return of_id->data; | 903 | return of_id->data; |
904 | } | 904 | } |
905 | 905 | ||
906 | #define CPPI41_DMA_BUSWIDTHS (BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | \ | ||
907 | BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) | \ | ||
908 | BIT(DMA_SLAVE_BUSWIDTH_3_BYTES) | \ | ||
909 | BIT(DMA_SLAVE_BUSWIDTH_4_BYTES)) | ||
910 | |||
906 | static int cppi41_dma_probe(struct platform_device *pdev) | 911 | static int cppi41_dma_probe(struct platform_device *pdev) |
907 | { | 912 | { |
908 | struct cppi41_dd *cdd; | 913 | struct cppi41_dd *cdd; |
@@ -926,6 +931,10 @@ static int cppi41_dma_probe(struct platform_device *pdev) | |||
926 | cdd->ddev.device_issue_pending = cppi41_dma_issue_pending; | 931 | cdd->ddev.device_issue_pending = cppi41_dma_issue_pending; |
927 | cdd->ddev.device_prep_slave_sg = cppi41_dma_prep_slave_sg; | 932 | cdd->ddev.device_prep_slave_sg = cppi41_dma_prep_slave_sg; |
928 | cdd->ddev.device_terminate_all = cppi41_stop_chan; | 933 | cdd->ddev.device_terminate_all = cppi41_stop_chan; |
934 | cdd->ddev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); | ||
935 | cdd->ddev.src_addr_widths = CPPI41_DMA_BUSWIDTHS; | ||
936 | cdd->ddev.dst_addr_widths = CPPI41_DMA_BUSWIDTHS; | ||
937 | cdd->ddev.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; | ||
929 | cdd->ddev.dev = dev; | 938 | cdd->ddev.dev = dev; |
930 | INIT_LIST_HEAD(&cdd->ddev.channels); | 939 | INIT_LIST_HEAD(&cdd->ddev.channels); |
931 | cpp41_dma_info.dma_cap = cdd->ddev.cap_mask; | 940 | cpp41_dma_info.dma_cap = cdd->ddev.cap_mask; |