summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-05-22 15:20:06 +0530
committerAndrey Konovalov <andrey.konovalov@linaro.org>2012-05-22 19:26:15 +0400
commit774c3a28353943ee57c0e36c035cca98225b3000 (patch)
treec7d496ad526de499d9da5c9a1da575f62f86fde7
parent10bc69714f9fb1a978d91466c9f069258e2b210d (diff)
dma: dmaengine: Remove BUG_ON condition in dma_cookie_completetracking-last-minute-fixes-3.4-2012.05-1
Currently on EXYNOS4210 based Origen board, we hit this BUG_ON condition (not sure what is missing). But after commenting this out audio playback works fine. Commenting this till further investigation. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--drivers/dma/dmaengine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/dma/dmaengine.h b/drivers/dma/dmaengine.h
index 17f983a4e9ba..b21a03e778bd 100644
--- a/drivers/dma/dmaengine.h
+++ b/drivers/dma/dmaengine.h
@@ -50,7 +50,15 @@ static inline dma_cookie_t dma_cookie_assign(struct dma_async_tx_descriptor *tx)
*/
static inline void dma_cookie_complete(struct dma_async_tx_descriptor *tx)
{
+#if 0
+ /*
+ * Currently on EXYNOS4210 based Origen board, we hit this BUG_ON
+ * condition (not sure what is missing). But after commenting this out
+ * audio playback works fine. Commenting this till further
+ * investigation.
+ */
BUG_ON(tx->cookie < DMA_MIN_COOKIE);
+#endif
tx->chan->completed_cookie = tx->cookie;
tx->cookie = 0;
}