diff options
author | Chaitanya Bandi <bandik@nvidia.com> | 2013-09-19 15:50:43 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-27 12:51:58 -0700 |
commit | e73015b54134967c5fa9389c4c79da056ff59f41 (patch) | |
tree | 6096e86dec2646377b795eed5b4e5023ef7a584a /drivers/dma | |
parent | eec545f905331ffdb706c10ebeccde5b5d28d156 (diff) |
dma: tegra: Fix clock disable in one-shot
Fixed clock disable sequence in dma.
Bug 1365577
Change-Id: I69735851a3c40b6d946ba9ec2040c87f6ec764a1
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/276630
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 4c25a34ea7d4..1e82d16fd7e3 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c @@ -600,7 +600,7 @@ static void handle_once_dma_done(struct tegra_dma_channel *tdc, list_add_tail(&sgreq->node, &tdc->free_sg_req); /* Do not start DMA if it is going to be terminate */ - if (list_empty(&tdc->pending_sg_req)) { + if (list_empty(&tdc->pending_sg_req) && (!to_terminate)) { clk_disable_unprepare(tdc->tdma->dma_clk); pm_runtime_put(tdc->tdma->dev); } |