summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2011-09-14 15:47:10 +0300
committerVarun Colbert <vcolbert@nvidia.com>2011-09-16 14:58:05 -0700
commitf837e5b34d311b13a52996b68b27b0207c15bd79 (patch)
tree22ed27ebb806feaebababd2bbf70c72d809459cb /drivers
parentd1108a676733ee233f5f14636b53b6407e04dd06 (diff)
nvhost: Turn clock on before querying clock rate
nvhost_module_rate() must turn clock on before querying its value. Bug 873710 Change-Id: Idae811c6f7a27cbd0b9d701921fad36eaca1121e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/52357 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/host/nvhost_acm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/nvhost_acm.c b/drivers/video/tegra/host/nvhost_acm.c
index 095520433b71..7ead7ac69fca 100644
--- a/drivers/video/tegra/host/nvhost_acm.c
+++ b/drivers/video/tegra/host/nvhost_acm.c
@@ -487,7 +487,9 @@ int nvhost_module_get_rate(struct nvhost_module *mod, unsigned long *rate,
if (IS_ERR_OR_NULL(c))
return -EINVAL;
+ nvhost_module_busy(mod);
*rate = clk_get_rate(c);
+ nvhost_module_idle(mod);
return 0;
}