summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2012-10-01 14:48:52 +0300
committerXavier Boudet <x-boudet@ti.com>2012-10-01 15:00:12 +0200
commitd23689e9f790c136906ea647d555e004851122e9 (patch)
treeadeb92d5d280548884a4299edd7ef66fc49e8fff
parent08f811b2ec500b8fcf0b720726aeaf9236ac10ac (diff)
OMAPDSS: HDMI: Fix potential hardware damage
The driver must always enable and disable the PHY as quickly as possible after the HPD event, otherwise there's a possibility of physical damage to the board. Signed-off-by: Roger Quadros <rogerq@ti.com>
-rw-r--r--drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
index 13bcf07465f3..a0111d63ca2e 100644
--- a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
+++ b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
@@ -280,12 +280,14 @@ err:
static irqreturn_t hpd_irq_handler(int irq, void *data)
{
-#ifndef CONFIG_DRM_OMAP
struct hdmi_ip_data *ip_data = data;
+#ifdef CONFIG_DRM_OMAP
+ extern void omapdrm_hpd_change(void);
+#endif
hdmi_check_hpd_state(ip_data);
-#else
- extern void omapdrm_hpd_change(void);
+
+#ifdef CONFIG_DRM_OMAP
omapdrm_hpd_change();
#endif