MLK-16924: hdp: Disable HDP hotplug detect thread temporary
authorSandor Yu <Sandor.yu@nxp.com>
Tue, 21 Nov 2017 09:03:28 +0000 (17:03 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
HDMI Fw is unstable, hotplug detect thread may
blocked at hdmi mailbox access.
Disable hotplug detect thread function temporary.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
drivers/gpu/drm/imx/hdp/imx-hdp.c

index 6646f82..243d1d0 100644 (file)
@@ -622,6 +622,7 @@ static void imx_hdp_mode_setup(struct imx_hdp *hdp, struct drm_display_mode *mod
        hdp->vic = drm_match_cea_mode(mode);
 }
 
+#if 0
 static int imx_hdp_cable_plugin(struct imx_hdp *hdp)
 {
        return 0;
@@ -632,7 +633,7 @@ static int imx_hdp_cable_plugout(struct imx_hdp *hdp)
        imx_hdp_call(hdp, pixel_clock_disable, &hdp->clks);
        return 0;
 }
-
+#endif
 
 static void imx_hdp_bridge_mode_set(struct drm_bridge *bridge,
                                    struct drm_display_mode *orig_mode,
@@ -960,6 +961,7 @@ static const struct of_device_id imx_hdp_dt_ids[] = {
 };
 MODULE_DEVICE_TABLE(of, imx_hdp_dt_ids);
 
+#if 0
 #ifdef hdp_irq
 static irqreturn_t imx_hdp_irq_handler(int irq, void *data)
 {
@@ -1031,6 +1033,7 @@ static int hpd_det_worker(void *_dp)
        return 0;
 }
 #endif
+#endif
 
 static int imx_hdp_imx_bind(struct device *dev, struct device *master,
                            void *data)
@@ -1045,7 +1048,9 @@ static int imx_hdp_imx_bind(struct device *dev, struct device *master,
        struct drm_bridge *bridge;
        struct drm_connector *connector;
        struct resource *res;
+#if 0
        struct task_struct *hpd_worker;
+#endif
        int irq;
        int ret;
 
@@ -1172,6 +1177,7 @@ static int imx_hdp_imx_bind(struct device *dev, struct device *master,
                return ret;
        }
 
+#if 0
 #ifdef hdp_irq
        ret = devm_request_threaded_irq(dev, irq,
                                        NULL, imx_hdp_irq_handler,
@@ -1187,6 +1193,7 @@ static int imx_hdp_imx_bind(struct device *dev, struct device *master,
        }
 
        wake_up_process(hpd_worker);    /* avoid contributing to loadavg */
+#endif
 #endif
 
        return 0;