dmaengine: at_xdmac: simplify channel configuration stuff
authorLudovic Desroches <ludovic.desroches@atmel.com>
Tue, 27 Jan 2015 15:30:31 +0000 (16:30 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 5 Feb 2015 07:12:29 +0000 (23:12 -0800)
commitbe835074829b13c5f635ef78ed911b13b9c15fa9
tree2cdb8e53d78deeb46bc132b191015ad9d39b8f13
parent734bb9a7b3e198ba3b7d12565dce31d1568ab018
dmaengine: at_xdmac: simplify channel configuration stuff

This patch simplifies the channel configuration register management.
Relying on a "software snapshot" of the configuration is not safe and
too complex.

Multiple dwidths will be introduced for slave transfers. In this case,
it becomes quite difficult to have an accurate snapshot of the channel
configuration register in the way it is done. Using the channel
configuration available in the lli descriptor simplifies this stuff.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c