summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/hdmi.c
diff options
context:
space:
mode:
authorpdabade <pdabade@nvidia.com>2013-11-22 15:27:40 +0530
committerPankaj Dabade <pdabade@nvidia.com>2013-11-24 23:31:22 -0800
commitdaa27fb38f806c7d5fddc39e1d81613dc68c9874 (patch)
treed400254677c287d934084a76c8b91590fc606ee6 /drivers/video/tegra/dc/hdmi.c
parent417fc373ad33e6f7adc7836086307f2e93256eac (diff)
video: tegra: hdmi: check powergate status
Checking powergate status before dumping registers. If power is gated, return quietly. bug 1403057 Change-Id: I7791ede351b3f0ecec909f99d8ec279f33d37700 Signed-off-by: Pankaj Dabade <pdabade@nvidia.com> Reviewed-on: http://git-master/r/333953 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Animesh Kishore <ankishore@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/hdmi.c')
-rw-r--r--drivers/video/tegra/dc/hdmi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index 8918ef55dad1..40db0ab73dd1 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -370,6 +370,10 @@ static int dbg_hdmi_show(struct seq_file *m, void *unused)
{
struct tegra_dc_hdmi_data *hdmi = m->private;
+ /* If gated quitely return */
+ if (!tegra_dc_is_powered(hdmi->dc))
+ return 0;
+
#define DUMP_REG(a) do { \
seq_printf(m, "%-32s\t%03x\t%08lx\n", \
#a, a, tegra_hdmi_readl(hdmi, a)); \