dmaengine: omap-dma: consolidate setup of CSDP
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Nov 2013 18:51:53 +0000 (18:51 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Apr 2014 23:27:56 +0000 (00:27 +0100)
commit2f0d13bdf6440906bb52fe94681ce7927145f4d7
tree6048da12ca54c4086d9ca0bffda4de6bbf319acc
parent3997cab391b38e126f217e36ad7bdc9672c9fb4d
dmaengine: omap-dma: consolidate setup of CSDP

Consolidate the setup of the channel source destination parameters
register.  This way, we calculate the required CSDP value when we setup
a transfer descriptor, and only write it to the device registers once
when we start the descriptor.

Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/omap-dma.c