]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dmaengine: cppi41: fix cppi41_dma_tx_status() logic
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 16 Mar 2017 14:18:44 +0000 (16:18 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 27 Mar 2017 05:19:34 +0000 (10:49 +0530)
commita08f2673dde1aaba22c79ed016d5901f1b042401
tree7f1104fd238e5695d4196431034386137abd454f
parent4f68b09ea3ed5b9619568625d967569da055f487
dmaengine: cppi41: fix cppi41_dma_tx_status() logic

It makes sense to set residue when channel is in progress. Otherwise it
should be 0 since transfer is completed. Meanwhile this patch doesn't
prevent to set residue value anyway.

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