Subject: + drivers-dma-mmp_tdmac-use-gen_pool_dma_alloc-to-allocate-descriptor.patch added to -mm tree To: b42378@xxxxxxxxxxxxx,dan.j.williams@xxxxxxxxx,grant.likely@xxxxxxxxxx,vinod.koul@xxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 04 Nov 2013 14:17:11 -0800 The patch titled Subject: drivers/dma/mmp_tdma.c: use gen_pool_dma_alloc() to allocate descriptor has been added to the -mm tree. Its filename is drivers-dma-mmp_tdmac-use-gen_pool_dma_alloc-to-allocate-descriptor.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/drivers-dma-mmp_tdmac-use-gen_pool_dma_alloc-to-allocate-descriptor.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/drivers-dma-mmp_tdmac-use-gen_pool_dma_alloc-to-allocate-descriptor.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Nicolin Chen <b42378@xxxxxxxxxxxxx> Subject: drivers/dma/mmp_tdma.c: use gen_pool_dma_alloc() to allocate descriptor Since gen_pool_dma_alloc() is introduced, we implement it to simplify code. Signed-off-by: Nicolin Chen <b42378@xxxxxxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: Vinod Koul <vinod.koul@xxxxxxxxx> Cc: Grant Likely <grant.likely@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/dma/mmp_tdma.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff -puN drivers/dma/mmp_tdma.c~drivers-dma-mmp_tdmac-use-gen_pool_dma_alloc-to-allocate-descriptor drivers/dma/mmp_tdma.c --- a/drivers/dma/mmp_tdma.c~drivers-dma-mmp_tdmac-use-gen_pool_dma_alloc-to-allocate-descriptor +++ a/drivers/dma/mmp_tdma.c @@ -378,12 +378,7 @@ struct mmp_tdma_desc *mmp_tdma_alloc_des if (!gpool) return NULL; - tdmac->desc_arr = (void *)gen_pool_alloc(gpool, size); - if (!tdmac->desc_arr) - return NULL; - - tdmac->desc_arr_phys = gen_pool_virt_to_phys(gpool, - (unsigned long)tdmac->desc_arr); + tdmac->desc_arr = gen_pool_dma_alloc(gpool, size, &tdmac->desc_arr_phys); return tdmac->desc_arr; } _ Patches currently in -mm which might be from b42378@xxxxxxxxxxxxx are linux-next.patch lib-genalloc-add-a-helper-function-for-dma-buffer-allocation.patch arch-arm-mach-davinci-sramc-use-gen_pool_dma_alloc-to-sramc.patch drivers-dma-mmp_tdmac-use-gen_pool_dma_alloc-to-allocate-descriptor.patch drivers-media-platform-codac-use-gen_pool_dma_alloc-to-allocate-iram-buffer.patch drivers-uio-uio_prussc-use-gen_pool_dma_alloc-to-allocate-sram-memory.patch sound-soc-davinci-davinci-pcmc-use-gen_pool_dma_alloc-in-davinci-pcmc.patch sound-soc-pxa-mmp-pcmc-use-gen_pool_dma_alloc-to-allocate-dma-buffer.patch sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html