Commit 0a0aee20 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vinod Koul

tegra20-apb-dma: remove useless use of lock

Accordingly to dma_cookie_status() description locking is not required.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: linux-tegra@vger.kernel.org
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent da0a908e
...@@ -767,13 +767,11 @@ static enum dma_status tegra_dma_tx_status(struct dma_chan *dc, ...@@ -767,13 +767,11 @@ static enum dma_status tegra_dma_tx_status(struct dma_chan *dc,
unsigned long flags; unsigned long flags;
unsigned int residual; unsigned int residual;
spin_lock_irqsave(&tdc->lock, flags);
ret = dma_cookie_status(dc, cookie, txstate); ret = dma_cookie_status(dc, cookie, txstate);
if (ret == DMA_SUCCESS) { if (ret == DMA_SUCCESS)
spin_unlock_irqrestore(&tdc->lock, flags);
return ret; return ret;
}
spin_lock_irqsave(&tdc->lock, flags);
/* Check on wait_ack desc status */ /* Check on wait_ack desc status */
list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment