gfx: fix local screen blank out with rapid hotplug/unplugs
authorArun Kannan <arun.kannan@intel.com>
Fri, 30 Mar 2012 02:43:25 +0000 (19:43 -0700)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:30:49 +0000 (12:30 +0300)
Local display blanks out with too many rapid hot-plug/unplugs. This is
due to the call to drm_disable_unused_functions from the bottom-half irq
handler. This ends up as a race condition for this function which is called
once from drm and once from the bottom-half causing local display to get
into bad state.

Issue: HSD 207129
Signed-off-by: Amit Bhanagay <amit.bhanagay@intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/staging/mrst/drv/otm_hdmi/os/android/android_hdmi.c

index 516a3a9..ccc61db 100644 (file)
@@ -1594,7 +1594,9 @@ enum drm_connector_status android_hdmi_detect(struct drm_connector *connector)
                 * drm_crtc_helper_set_config() do mode setting each time,
                 * especially when plug out and plug in HDMI.
                 */
+#ifdef MFLD_HDMI_PR3
                drm_helper_disable_unused_functions(dev);
+#endif
 
 #ifdef OTM_HDMI_HDCP_ENABLE
                /* TODO: HPD status should be used by HDCP through attributes */