OSDN Git Service

dmaengine: ste_dma40: Calculate number of logical channels from physical ones
authorLee Jones <lee.jones@linaro.org>
Fri, 3 May 2013 14:32:03 +0000 (15:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 19:12:47 +0000 (21:12 +0200)
commitdb72da92103e3023e6a4fdfe65183b21bfe5d883
tree19663173711535124862a6833481633d875d3377
parent4bd04e2ed415754a38118399328bc2c494f68632
dmaengine: ste_dma40: Calculate number of logical channels from physical ones

This change will cost ~25KB of memory, but it's worth the trade-off,
as it removes a great deal of overhead. It means that instead of only
allocating memory for the logical channels in use, it does so for all
available ones, which is 32 per physical channel. However, this now
means we can remove some platform data and we don't have to worry
about adding vendor specific variables to Device Tree.

Acked-by: Vinod Koul <vnod.koul@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/devices-db8500.c
drivers/dma/ste_dma40.c
include/linux/platform_data/dma-ste-dma40.h