]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm: omapdrm: Don't flush CRTC when enabling or disabling it
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 27 May 2015 23:39:35 +0000 (02:39 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 12 Jun 2015 19:52:51 +0000 (22:52 +0300)
The omap_crtc_flush() call in omap_crtc_enable() and omap_crtc_disable()
is a no-op, as the display manager is always disabled at this point. Just
remove the function call.

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

index 2236f52f8bc351f493bb50c873e4a497f2c0143d..701406e1f0ee89a36c1b6a3e1fc305b1a20617b2 100644 (file)
@@ -405,8 +405,6 @@ static void omap_crtc_enable(struct drm_crtc *crtc)
                        WARN_ON(omap_plane_setup(plane));
        }
 
-       omap_crtc_flush(crtc);
-
        drm_crtc_vblank_on(crtc);
 }
 
@@ -428,8 +426,6 @@ static void omap_crtc_disable(struct drm_crtc *crtc)
                if (plane->crtc == crtc)
                        WARN_ON(omap_plane_setup(plane));
        }
-
-       omap_crtc_flush(crtc);
 }
 
 static void omap_crtc_mode_set_nofb(struct drm_crtc *crtc)