]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/sti: Store correct CRTC index in events
authorThierry Reding <treding@nvidia.com>
Thu, 24 Sep 2015 16:35:29 +0000 (18:35 +0200)
committerVincent Abriou <vincent.abriou@st.com>
Tue, 3 Nov 2015 12:04:53 +0000 (13:04 +0100)
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>
drivers/gpu/drm/sti/sti_crtc.c

index fc10f7fcfa86a6c2a1305c1c45b78be3cf45ff9d..2db21834d37d63622017bf5642b27ed04a14ff39 100644 (file)
@@ -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;