Skip to contentSkip to conversation

drm: small fix in drm_send_vblank_event()

PATCH New Rob Clark 1 participant 1 message Dec 14, 2012

Subsystems (2)
lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm: small fix in drm_send_vblank_event()

Initialize e->pipe.. some drivers set this themselves, others do not. Setting it in drm_send_vblank_event() should help ensure more consistent behavior with the different drivers.

---
 drivers/gpu/drm/drm_irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_irq.c +1 -0
index 19c01ca..9bb83a5 100644
@@ -863,6 +863,7 @@ void drm_send_vblank_event(struct drm_device *dev, int crtc,
 
 		now = get_drm_timestamp();
 	}
+	e->pipe = crtc;
 	send_vblank_event(dev, e, seq, &now);
 }
 EXPORT_SYMBOL(drm_send_vblank_event);
Signature · 1 line
1.8.0.2