Skip to content

Commit df00d02

Browse files
thierryredingvinceab
authored andcommitted
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>
1 parent 1352be6 commit df00d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/sti/sti_crtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ int sti_crtc_vblank_cb(struct notifier_block *nb,
274274

275275
spin_lock_irqsave(&drm_dev->event_lock, flags);
276276
if (compo->mixer[*crtc]->pending_event) {
277-
drm_send_vblank_event(drm_dev, -1,
277+
drm_send_vblank_event(drm_dev, *crtc,
278278
compo->mixer[*crtc]->pending_event);
279279
drm_vblank_put(drm_dev, *crtc);
280280
compo->mixer[*crtc]->pending_event = NULL;

0 commit comments

Comments
 (0)