diff options
author | Andy Shevchenko <[email protected]> | 2016-03-18 14:26:33 +0200 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2016-04-04 09:41:43 -0700 |
commit | a197f3c7d48c0c1f45076ea47533a76ba9b1a959 (patch) | |
tree | 15a03b790467c8d417e5bfe6714d686b0122d1c9 /lib/netdev-notifier-error-inject.c | |
parent | 080edf75d337d35faa6fc3df99342b10d2848d16 (diff) |
dmaengine: hsu: correct residue calculation of active descriptor
The commit f0579c8ceaf1 ("dmaengine: hsu: speed up residue calculation")
speeded up calculation of the queued descriptor but broke the initial residue
value for active descriptor.
In accordance with documentation the hardware descriptor is updated each time
DMA transfered some bytes. It means we have to calculate a sum of lengths of
non-submitted hardware descriptors and whatever current values in the hardware.
Do this straightforward.
Fixes: f0579c8ceaf1 ("dmaengine: hsu: speed up residue calculation")
Cc: [email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions