dmaengine: dw: clear LLP_[SD]_EN bits in last descriptor of a chain
authorMans Rullgard <mans@mansr.com>
Fri, 18 Mar 2016 14:24:45 +0000 (16:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Apr 2016 16:06:10 +0000 (21:36 +0530)
commita3e557999be74810e02be1d0c107096b7aa48ece
tree59704e5a77a784f3b8f6e61c9d376d78f649d32a
parent2a0fae025e56afbe38441d411f57667b08f44d0e
dmaengine: dw: clear LLP_[SD]_EN bits in last descriptor of a chain

The datasheet requires that the LLP_[SD]_EN bits be cleared whenever
LLP.LOC is zero, i.e. in the last descriptor of a multi-block chain.
Make the driver do this.

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