]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/omap: only ignore DIGIT SYNC LOST for TV output
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Feb 2015 13:20:25 +0000 (15:20 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 11:50:58 +0000 (13:50 +0200)
We need to ignore DIGIT SYNC LOST error when enabling/disabling TV
output. The code does that, but it ignores the DIGI SYNC LOST when
enabling any output. Normally this does no harm, but it could make us
miss DIGIT SYNC LOST on some rare occasions.

Fix the code to only ignore DIGIT SYNC LOST when enabling/disabling TV.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c

index c5c21776131a8d919da3bff238cf8baf4621a500..7b93880a4577c46c63b211a2459e6642316e93eb 100644 (file)
@@ -155,11 +155,13 @@ static void omap_crtc_set_enabled(struct drm_crtc *crtc, bool enable)
        if (dispc_mgr_is_enabled(channel) == enable)
                return;
 
-       /*
-        * Digit output produces some sync lost interrupts during the first
-        * frame when enabling, so we need to ignore those.
-        */
-       omap_crtc->ignore_digit_sync_lost = true;
+       if (omap_crtc->channel == OMAP_DSS_CHANNEL_DIGIT) {
+               /*
+                * Digit output produces some sync lost interrupts during the
+                * first frame when enabling, so we need to ignore those.
+                */
+               omap_crtc->ignore_digit_sync_lost = true;
+       }
 
        framedone_irq = dispc_mgr_get_framedone_irq(channel);
        vsync_irq = dispc_mgr_get_vsync_irq(channel);
@@ -190,9 +192,11 @@ static void omap_crtc_set_enabled(struct drm_crtc *crtc, bool enable)
                                omap_crtc->name, enable ? "enable" : "disable");
        }
 
-       omap_crtc->ignore_digit_sync_lost = false;
-       /* make sure the irq handler sees the value above */
-       mb();
+       if (omap_crtc->channel == OMAP_DSS_CHANNEL_DIGIT) {
+               omap_crtc->ignore_digit_sync_lost = false;
+               /* make sure the irq handler sees the value above */
+               mb();
+       }
 }