summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-01-25 10:48:03 +0100
committerVinod Koul <vinod.koul@intel.com>2013-01-28 13:04:50 +0100
commit4702d5244ca947263e8b7eb2ba6d8721e80c46e2 (patch)
tree127c5fdd5590467d781aca04685517e97d02bb01 /drivers/cdrom
parentdw_dmac: fill individual length of descriptor (diff)
downloadlinux-4702d5244ca947263e8b7eb2ba6d8721e80c46e2.tar.xz
linux-4702d5244ca947263e8b7eb2ba6d8721e80c46e2.zip
dw_dmac: return proper residue value
Currently the driver returns full length of the active descriptor which is wrong. We have to go throught the active descriptor and substract the length of each sent children in the chain from the total length along with the actual data in the DMA channel registers. The cyclic case is not handled by this patch due to len field in the descriptor structure is left untouched by the original code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/cdrom')
0 files changed, 0 insertions, 0 deletions