projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63d51e3
)
drm/msm/mdp4: disable vblanks when crtc is off
author
Rob Clark
<robdclark@gmail.com>
Tue, 17 Oct 2017 13:39:39 +0000
(09:39 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Sat, 28 Oct 2017 15:01:34 +0000
(11:01 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
index
47fa2ab
..
14bd3bd
100644
(file)
--- a/
drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
+++ b/
drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
@@
-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);
@@
-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);