summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPuneet Saxena <puneets@nvidia.com>2011-12-07 11:08:02 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-10 08:23:09 -0800
commit0cf6f859b53d0dbdb44c01ed25aeefee4caf72c5 (patch)
treec9e316fc6d5fed5a35d69d407c042643c683a7d4 /drivers
parentc79f10016290facfd1a79ad9504be422144c83ed (diff)
media: video: tegra: change emc clk operation sequence
first set emc clock rate and then enable it to take effect of the operation. bug 882076 Reviewed-on: http://git-master/r/68611 (cherry picked from commit 57e48fefa323fabd2cfb52093e6b0a600a18e7b0) Change-Id: I69ad717ccbfd020202ed2f12390ae8b535ff127e Signed-off-by: Puneet Saxena <puneets@nvidia.com> Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-on: http://git-master/r/73705 Reviewed-by: Automatic_Commit_Validation_User (cherry picked from commit 8751a59f5cfd2fe4c0ed88b5417ebab7f04a447e) Reviewed-on: http://git-master/r/73966 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/tegra/avp/avp_svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tegra/avp/avp_svc.c b/drivers/media/video/tegra/avp/avp_svc.c
index 6df1872ff1e8..4d2d1b369291 100644
--- a/drivers/media/video/tegra/avp/avp_svc.c
+++ b/drivers/media/video/tegra/avp/avp_svc.c
@@ -369,8 +369,8 @@ static void do_svc_module_clock(struct avp_svc_info *avp_svc,
aclk = &avp_svc->clks[mod->clk_req];
if (msg->enable) {
if (aclk->refcnt++ == 0) {
- clk_enable(avp_svc->emcclk);
clk_set_rate(avp_svc->emcclk, emc_rate);
+ clk_enable(avp_svc->emcclk);
clk_enable(avp_svc->sclk);
clk_enable(aclk->clk);
}