]> git.karo-electronics.de Git - linux-beck.git/commit
dmaengine: dw: set src and dst master select according to xfer direction
authorMans Rullgard <mans@mansr.com>
Fri, 18 Mar 2016 14:24:42 +0000 (16:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Apr 2016 16:06:10 +0000 (21:36 +0530)
commitbb3450ad0ed618fda84fbd2e28065bd7791fd7f9
tree8d2b7b280e5073d53dd9a86af04830fc77a25885
parentc422025c185fb2bb28df65b1bbed7953480c7f87
dmaengine: dw: set src and dst master select according to xfer direction

On some architectures the DMA controller can have two masters connected to
different buses and thus access to memory is possible only through one and
to peripheral through the other.

This patch changes the src and dst master setting to match the direction
of the transfer.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c