Subject: + arch-arm-mach-davinci-sramc-use-gen_pool_dma_alloc-to-sramc.patch added to -mm tree To: b42378@xxxxxxxxxxxxx,khilman@xxxxxxxxxxxxxxxxxxx,linux@xxxxxxxxxxxxxxxx,nsekhar@xxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 04 Nov 2013 14:17:10 -0800 The patch titled Subject: arch/arm/mach-davinci/sram.c: use gen_pool_dma_alloc() to sram.c has been added to the -mm tree. Its filename is arch-arm-mach-davinci-sramc-use-gen_pool_dma_alloc-to-sramc.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/arch-arm-mach-davinci-sramc-use-gen_pool_dma_alloc-to-sramc.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/arch-arm-mach-davinci-sramc-use-gen_pool_dma_alloc-to-sramc.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: arch/arm/mach-davinci/sram.c: use gen_pool_dma_alloc() to sram.c Since gen_pool_dma_alloc() is introduced, we implement it to simplify code. Signed-off-by: Nicolin Chen <b42378@xxxxxxxxxxxxx> Cc: Sekhar Nori <nsekhar@xxxxxx> Cc: Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx> Cc: Russell King <linux@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/arm/mach-davinci/sram.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff -puN arch/arm/mach-davinci/sram.c~arch-arm-mach-davinci-sramc-use-gen_pool_dma_alloc-to-sramc arch/arm/mach-davinci/sram.c --- a/arch/arm/mach-davinci/sram.c~arch-arm-mach-davinci-sramc-use-gen_pool_dma_alloc-to-sramc +++ a/arch/arm/mach-davinci/sram.c @@ -25,7 +25,6 @@ struct gen_pool *sram_get_gen_pool(void) void *sram_alloc(size_t len, dma_addr_t *dma) { - unsigned long vaddr; dma_addr_t dma_base = davinci_soc_info.sram_dma; if (dma) @@ -33,13 +32,7 @@ void *sram_alloc(size_t len, dma_addr_t if (!sram_pool || (dma && !dma_base)) return NULL; - vaddr = gen_pool_alloc(sram_pool, len); - if (!vaddr) - return NULL; - - if (dma) - *dma = gen_pool_virt_to_phys(sram_pool, vaddr); - return (void *)vaddr; + return gen_pool_dma_alloc(sram_pool, len, dma); } EXPORT_SYMBOL(sram_alloc); _ 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