summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreshtha Sahu <ssahu@nvidia.com>2013-08-01 13:05:23 +0530
committerMatthew Pedro <mapedro@nvidia.com>2013-08-07 10:09:19 -0700
commitb358015d5dc66e1c2de23f68aeb6b53d485f1365 (patch)
tree2ef7b50423d36264d60f193b1a0eba8a399ecdd2
parente544d763bb135aaac6e64775bb625b5739e70747 (diff)
asoc: tegra: fix hang while accessing DAM registers
Accessing DAM registers in debugfs (tegra30_dam_show) without enabling AHUB clock hangs the system. This patch enables AHUB APBIF clock along with DAM clock before accessing DAM regsiters. Bug 1334025 Change-Id: Ibf2bc4c699027b8fc28f3e861e5b306f8ffd9564 Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Reviewed-on: http://git-master/r/256715 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
-rw-r--r--sound/soc/tegra/tegra30_dam.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_dam.c b/sound/soc/tegra/tegra30_dam.c
index 424fa9c9c895..4dfcd117171f 100644
--- a/sound/soc/tegra/tegra30_dam.c
+++ b/sound/soc/tegra/tegra30_dam.c
@@ -3,7 +3,7 @@
*
* Author: Nikesh Oswal <noswal@nvidia.com>
* Copyright (C) 2011 - NVIDIA, Inc.
- * Copyright (C) 2012, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (C) 2012-2013, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -415,6 +415,7 @@ static int tegra30_dam_show(struct seq_file *s, void *unused)
struct tegra30_dam_context *dam = s->private;
int i;
+ tegra30_ahub_enable_clocks();
clk_enable(dam->dam_clk);
for (i = 0; i < ARRAY_SIZE(regs); i++) {
@@ -423,6 +424,7 @@ static int tegra30_dam_show(struct seq_file *s, void *unused)
}
clk_disable(dam->dam_clk);
+ tegra30_ahub_disable_clocks();
return 0;
}