]> git.baikalelectronics.ru Git - kernel.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)
commit9a8d87b26c18dbcf335a44699970be842aa35f98
tree7f1104fd238e5695d4196431034386137abd454f
parentf51a0e6c379c372b0d96235c3c6d844e9e0260f3
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