]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: dw_dmac: simplify master selection
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Mar 2013 14:53:57 +0000 (16:53 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 1 Apr 2013 18:13:47 +0000 (23:43 +0530)
commitd9e1a4367d624aee8c5148ed369dae4b29140bde
treefe456e1aefd9fb11f6dad430cecc26c16a276287
parent14ecf4245a7dd31d92f6271e55620fd378203a87
dmaengine: dw_dmac: simplify master selection

The patch to add the common DMA binding added a dummy dw_dma_slave
structure into the dw_dma_chan structure in order to configure the
masters correctly. It turns out that this can be simplified if we
pick the DMA masters in the dwc_alloc_chan_resources function instead
and save them in the dw_dma_chan structure directly.

This could be simplified further once all users that today use
dw_dma_slave for configuration get converted to device tree based
setup instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h