]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: dw: move residue to a descriptor
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Mar 2016 14:24:53 +0000 (16:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Apr 2016 16:06:16 +0000 (21:36 +0530)
commitb68fd0976286e0cc4e163a83b8b68d6efca814dd
tree10737c6c433fe56d420952f63183657c002a01b9
parent423f9cbf2da8110e01eee56b8f755332432e82c7
dmaengine: dw: move residue to a descriptor

Residue is a property of any active descriptor. So, any descriptor may be in
different state but residue is a feature of active descriptor. Check if the
asked descriptor is active and return proper residue value for it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c
drivers/dma/dw/regs.h