Revert "dmaengine: virt-dma: don't always free descriptor upon completion"
authorJun Nie <jun.nie@linaro.org>
Fri, 10 Jul 2015 12:02:49 +0000 (20:02 +0800)
committerVinod Koul <vinod.koul@intel.com>
Fri, 31 Jul 2015 15:03:43 +0000 (20:33 +0530)
commit8c8fe97b2b8a216523e2faf1ccca66ddab634e3e
tree31cb28e7335a1e29a1f86f1e982955a3336318f4
parent0ec9ebc706fbd394bc233d87ac7aaad1c4f3ab54
Revert "dmaengine: virt-dma: don't always free descriptor upon completion"

This reverts commit b9855f03d560d351e95301b9de0bc3cad3b31fe9.
The patch break existing DMA usage case. For example, audio SOC
dmaengine never release channel and cause virt-dma to cache too
much memory in descriptor to exhaust system memory.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/virt-dma.c
drivers/dma/virt-dma.h