summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Hong <hhong@nvidia.com>2014-07-24 11:20:24 +0900
committerHarry Hong <hhong@nvidia.com>2014-07-23 21:34:15 -0700
commitf56e03024b82059810504232886326d4fb5ef0d2 (patch)
tree6de8ac3e7b7f051904813dcb0c9bd858ccdf4033
parentcc501d75f0608d8901f82612e37e299d67c70f17 (diff)
video: tegra: add debug info
Printing HDMI_5V0 enable/disable. Bug 200008754 Change-Id: I370fc2afa7f0dd50610cd9a602a790cedefe9bfb Signed-off-by: Harry Hong <hhong@nvidia.com> Reviewed-on: http://git-master/r/441566
-rw-r--r--drivers/video/tegra/dc/of_dc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/of_dc.c b/drivers/video/tegra/dc/of_dc.c
index 2436ae2e6eac..79ad9f7e729b 100644
--- a/drivers/video/tegra/dc/of_dc.c
+++ b/drivers/video/tegra/dc/of_dc.c
@@ -1098,6 +1098,7 @@ static int dc_hdmi_hotplug_init(struct device *dev)
struct device_node *np_hdmi =
of_find_compatible_node(NULL, NULL, "nvidia,tegra114-hdmi");
+ pr_info("%s: init\n", __func__);
if (!np_hdmi) {
pr_info("%s: no hdmi node\n", __func__);
return 0;
@@ -1116,6 +1117,7 @@ static int dc_hdmi_hotplug_init(struct device *dev)
of_regulators_dc1[i] = NULL;
return PTR_ERR(of_regulators_dc1[i]);
} else {
+ pr_info("%s: enable HDMI_5V0\n", __func__);
err = regulator_enable(of_regulators_dc1[i]);
}
}
@@ -1129,7 +1131,9 @@ static int dc_hdmi_hotplug_init(struct device *dev)
static int dc_hdmi_postsuspend(void)
{
+ pr_info("%s: suspend\n", __func__);
if (of_regulators_dc1[HDMI_REGS_TOTAL - 1]) {
+ pr_info("%s: disalbe HDMI_5V0\n", __func__);
regulator_disable(of_regulators_dc1[HDMI_REGS_TOTAL - 1]);
regulator_put(of_regulators_dc1[HDMI_REGS_TOTAL - 1]);
of_regulators_dc1[HDMI_REGS_TOTAL - 1] = NULL;