Skip to content

Commit

Permalink
drm/msm/mdp4: disable vblanks when crtc is off
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Clark <robdclark@gmail.com>
  • Loading branch information
robclark committed Oct 28, 2017
1 parent 63d51e3 commit cae923e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ static void mdp4_crtc_atomic_disable(struct drm_crtc *crtc,
if (WARN_ON(!mdp4_crtc->enabled))
return;

/* Disable/save vblank irq handling before power is disabled */
drm_crtc_vblank_off(crtc);

mdp_irq_unregister(&mdp4_kms->base, &mdp4_crtc->err);
mdp4_disable(mdp4_kms);

Expand All @@ -308,6 +311,10 @@ static void mdp4_crtc_atomic_enable(struct drm_crtc *crtc,
return;

mdp4_enable(mdp4_kms);

/* Restore vblank irq handling after power is enabled */
drm_crtc_vblank_on(crtc);

mdp_irq_register(&mdp4_kms->base, &mdp4_crtc->err);

crtc_flush(crtc);
Expand Down

0 comments on commit cae923e

Please sign in to comment.