diff options
author | Daniel Mack <zonque@gmail.com> | 2014-02-17 15:29:06 +0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-05-07 11:03:40 +0400 |
commit | 1b38da264674d6a0fe26a63996b8f88b88c3da48 (patch) | |
tree | faf02404cae3dbd64740fdb1998e17e4ce3518d1 /drivers/dma/ste_dma40.c | |
parent | c906a3ec458742c95850c0c1cde9e8b68df25c01 (diff) | |
download | linux-1b38da264674d6a0fe26a63996b8f88b88c3da48.tar.xz |
dma: mmp_pdma: add support for residue reporting
A channel can accommodate more than one transaction, each consisting of
multiple descriptors, the last of which has the DCMD_ENDIRQEN bit set.
In order to report the channel's residue, we hence have to walk the
list of running descriptors, look for those which match the cookie,
and then try to find the descriptor which defines upper and lower
boundaries that embrace the current transport pointer. Once it is found,
walk forward until we find the descriptor that tells us about the end of
a transaction via a set DCMD_ENDIRQEN bit.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ste_dma40.c')
0 files changed, 0 insertions, 0 deletions