summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-09-24 18:35:29 +0200
committerVincent Abriou <vincent.abriou@st.com>2015-11-03 13:04:53 +0100
commitdf00d029d7f107aa4b35edffca0465664e7289bd (patch)
treef003dc4b96a1dd8c68a9b9eeaab5ee01349ad498 /drivers/gpu
parent1352be6eb0f3484bfed6b5676a8e2c34be43ba74 (diff)
downloadlinux-df00d029d7f107aa4b35edffca0465664e7289bd.tar.bz2
drm/sti: Store correct CRTC index in events
A negative pipe causes a special case to be triggered for drivers that don't have proper VBLANK support. STi does support VBLANKs, so there is no need for the fallback code. Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Cc: Vincent Abriou <vincent.abriou@st.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/sti/sti_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c
index fc10f7fcfa86..2db21834d37d 100644
--- a/drivers/gpu/drm/sti/sti_crtc.c
+++ b/drivers/gpu/drm/sti/sti_crtc.c
@@ -274,7 +274,7 @@ int sti_crtc_vblank_cb(struct notifier_block *nb,
spin_lock_irqsave(&drm_dev->event_lock, flags);
if (compo->mixer[*crtc]->pending_event) {
- drm_send_vblank_event(drm_dev, -1,
+ drm_send_vblank_event(drm_dev, *crtc,
compo->mixer[*crtc]->pending_event);
drm_vblank_put(drm_dev, *crtc);
compo->mixer[*crtc]->pending_event = NULL;