diff options
author | Elen Song <elen.song@atmel.com> | 2013-05-10 11:01:46 +0800 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-07-05 11:40:31 +0530 |
commit | d48de6f1a81b3d10de0f5765aff1b3bd788617b0 (patch) | |
tree | 6e6e83e17b5a776524793d114723b31e3135f1a4 /fs/ufs | |
parent | d088c33b646e9f3564eea7a057a2cb697c18bcd0 (diff) | |
download | blackbird-op-linux-d48de6f1a81b3d10de0f5765aff1b3bd788617b0.tar.gz blackbird-op-linux-d48de6f1a81b3d10de0f5765aff1b3bd788617b0.zip |
DMA: AT91: Get residual bytes in dma buffer
Add support for returning the residue for current transfer cookie by
reading the transfered buffer size(BTSIZE) in CTRLA register.
For a single buffer cookie, the descriptor length minus BTSIZE
can get the residue.
For a lli cookie, remain_desc will record remain descriptor length
when last descriptor finish, the remain_desc minus BTSIZE can get the
current residue.
If the cookie has completed successfully, the residue will be zero.
If the cookie is in progress, it will be the number of bytes yet to be transferred.
If get residue error, the cookie will be turn into error status.
Check dma fifo to see if data remain, let issue pending finish remain work if there is.
Signed-off-by: Elen Song <elen.song@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'fs/ufs')
0 files changed, 0 insertions, 0 deletions