Skip to content

Commit e537ba0

Browse files
BobBeckettgregkh
authored andcommitted
drm/imx: only send event on crtc disable if kept disabled
commit 5aeab2b upstream. The event will be sent as part of the vblank enable during the modeset if the crtc is not being kept disabled. Fixes: 5f2f911 ("drm/imx: atomic phase 3 step 1: Use atomic configuration") Signed-off-by: Robert Beckett <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Philipp Zabel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 06a7d35 commit e537ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/imx/ipuv3-crtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void ipu_crtc_atomic_disable(struct drm_crtc *crtc,
7979
drm_crtc_vblank_off(crtc);
8080

8181
spin_lock_irq(&crtc->dev->event_lock);
82-
if (crtc->state->event) {
82+
if (crtc->state->event && !crtc->state->active) {
8383
drm_crtc_send_vblank_event(crtc, crtc->state->event);
8484
crtc->state->event = NULL;
8585
}

0 commit comments

Comments
 (0)