From a9c0f8e73c17410cb37091aa72a16fea3696f612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= Date: Fri, 24 Feb 2012 18:51:39 +0100 Subject: Hack! Force HPD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vincent Stehlé --- drivers/video/omap2/dss/hdmi.c | 6 ++++++ drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index 793eed812cc..b7c0ba774bb 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c @@ -712,6 +712,12 @@ void hdmi_dump_regs(struct seq_file *s) static int hdmi_get_current_hpd(void) { + + + // Hack! Force HPD. + return 1; + + if (!hdmi.ip_data.hpd_gpio) return 0; return gpio_get_value(hdmi.ip_data.hpd_gpio); diff --git a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c index 2fac503b0ed..d0b743d7744 100644 --- a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c +++ b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c @@ -243,6 +243,12 @@ static int hdmi_check_hpd_state(struct hdmi_ip_data *ip_data) pr_err("hdmi_check_hpd_state says %d\n", hpd); + + // Hack! Force HPD. + pr_err("Hack! Force HPD\n"); + hpd = 1; + + if (hpd == ip_data->phy_tx_enabled) { spin_unlock_irqrestore(&phy_tx_lock, flags); return 0; -- cgit v1.2.3