dmaengine: dw: fix cyclic transfer callbacks
authorMans Rullgard <mans@mansr.com>
Mon, 11 Jan 2016 13:04:29 +0000 (13:04 +0000)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Feb 2016 03:56:51 +0000 (22:56 -0500)
commite64af167a00c9179bb5eec6ee9f3c7bf44fbe3c7
tree2807e52db0dcbf4fa03146b496aa3ab1f035fa66
parent6e58c401897d31de9e5ea0da2c6a90aa83cc6eae
dmaengine: dw: fix cyclic transfer callbacks

[ Upstream commit 2895b2cad6e7a95104cf396e5330054453382ae1 ]

Cyclic transfer callbacks rely on block completion interrupts which were
disabled in commit ff7b05f29fd4 ("dmaengine/dw_dmac: Don't handle block
interrupts").  This re-enables block interrupts so the cyclic callbacks
can work.  Other transfer types are not affected as they set the INT_EN
bit only on the last block.

Fixes: ff7b05f29fd4 ("dmaengine/dw_dmac: Don't handle block interrupts")
Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/dma/dw/core.c