From e6ed1f23d7e966ce1011f7613e9ad233fac2fb74 Mon Sep 17 00:00:00 2001 From: Ajay Singh Parmar Date: Tue, 10 Jul 2012 16:08:30 +0530 Subject: [PATCH] msm_fb: hdmi: Do not turn on HPD at boot HPD is getting turned on by userspace if HDMI is enabled. We don't need to turn on the HPD from HDMI driver. CRs-Fixed: 377899 Change-Id: I29af0ca6ba222c7af61b1a0e8b51be35dee6426c Signed-off-by: Ajay Singh Parmar --- drivers/video/msm/hdmi_msm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/video/msm/hdmi_msm.c b/drivers/video/msm/hdmi_msm.c index f599f916e55a..4fe4d933e6e6 100644 --- a/drivers/video/msm/hdmi_msm.c +++ b/drivers/video/msm/hdmi_msm.c @@ -4583,10 +4583,11 @@ static int __devinit hdmi_msm_probe(struct platform_device *pdev) } else DEV_ERR("Init FAILED: failed to add fb device\n"); - rc = hdmi_msm_hpd_on(true); - if (rc) - goto error; - DEV_INFO("HDMI HPD: ON\n"); + if (hdmi_prim_display) { + rc = hdmi_msm_hpd_on(true); + if (rc) + goto error; + } if (hdmi_msm_has_hdcp()) { /* Don't Set Encryption in case of non HDCP builds */