ARM: tegra: dma: Do not call complete callback on canceled requests
authorColin Cross <ccross@android.com>
Wed, 16 Mar 2011 23:53:24 +0000 (16:53 -0700)
committerColin Cross <ccross@android.com>
Tue, 22 Mar 2011 18:25:25 +0000 (11:25 -0700)
commitb7f9c567e6b95074087584672773a167224608d3
tree9d9e9688bbc1e3b68d7e6b639510fd891e47a6a0
parent34279b4fb531924e1bd66c364bb2f97c9a578646
ARM: tegra: dma: Do not call complete callback on canceled requests

Calling the complete callback when a request is cancelled leads to
locking problems in the callback, which could be called from an IRQ
with no locks held, or from whatever context called
tegra_dma_dequeue_req.  Instead, expect the caller to handle the
now-cancelled request as needed.

Also removes tegra_dma_dequeue, since all users can be trivially
converted to tegra_dma_dequeue_req.

Change-Id: If699239c09c78d1cd3afa0eaad46535b1d401a24
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/dma.c
arch/arm/mach-tegra/include/mach/dma.h