]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm: rcar-du: Don't update planes on disabled CRTCs
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 10 Sep 2015 15:52:55 +0000 (18:52 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 20 Feb 2016 00:58:51 +0000 (02:58 +0200)
A disabled CRTC can't display planes, the driver shouldn't try to
configure it when updating planes. The DRM core will store the plane
state for us, and the plane will be configured appropriately the next
time the CRTC is enabled.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_kms.c

index 43bce69d85604e08ccc55b09cc1a4be4c0b5e5cb..33a6a4f88c9b2875b75009680b32e829866030b9 100644 (file)
@@ -456,7 +456,7 @@ static void rcar_du_atomic_complete(struct rcar_du_commit *commit)
        /* Apply the atomic update. */
        drm_atomic_helper_commit_modeset_disables(dev, old_state);
        drm_atomic_helper_commit_modeset_enables(dev, old_state);
-       drm_atomic_helper_commit_planes(dev, old_state, false);
+       drm_atomic_helper_commit_planes(dev, old_state, true);
 
        drm_atomic_helper_wait_for_vblanks(dev, old_state);