summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/nvhost_channel.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2011-10-05 15:18:20 +0300
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:21 -0800
commit89c4ea608a47254642846e1b3cba674cc6e5e53e (patch)
treebeb5d3cd2ec8bf9a79bb8d501135c56aea5214cb /drivers/video/tegra/host/nvhost_channel.c
parent6a4ee3cdaf6245dbef5006da60d41bed663a4ba4 (diff)
nvhost: Wait for CDMA to end before freeing channel
Wait for CDMA to become idle before freeing resources associated with a channel. Bug 877665 Change-Id: I1a25f98ba8620202d349a4c6af38fa0e20839751 Reviewed-on: http://git-master/r/56653 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Gerrit_Virtual_Submit Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-by: Antti Miettinen <amiettinen@nvidia.com> Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R6a00d31d4bd91f7875671af8b183a2ceac1fc242
Diffstat (limited to 'drivers/video/tegra/host/nvhost_channel.c')
-rw-r--r--drivers/video/tegra/host/nvhost_channel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/tegra/host/nvhost_channel.c b/drivers/video/tegra/host/nvhost_channel.c
index 163046a36219..ca8ec45452c5 100644
--- a/drivers/video/tegra/host/nvhost_channel.c
+++ b/drivers/video/tegra/host/nvhost_channel.c
@@ -74,11 +74,9 @@ void nvhost_putchannel(struct nvhost_channel *ch, struct nvhost_hwctx *ctx)
mutex_lock(&ch->reflock);
if (ch->refcount == 1) {
- nvhost_module_deinit(&ch->dev->pdev->dev, &ch->mod);
- /* cdma may already be stopped, that's ok */
-
channel_cdma_op(ch).stop(&ch->cdma);
nvhost_cdma_deinit(&ch->cdma);
+ nvhost_module_deinit(&ch->dev->pdev->dev, &ch->mod);
}
ch->refcount--;
mutex_unlock(&ch->reflock);