diff mbox

[1/4] drm: small fix in drm_send_vblank_event()

Message ID 1357704526-3447-2-git-send-email-robdclark@gmail.com
State Accepted
Commit 21a245d2d62ef617978316203af032d499805cd2
Headers show

Commit Message

Rob Clark Jan. 9, 2013, 4:08 a.m. UTC
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.

Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 drivers/gpu/drm/drm_irq.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Alex Deucher Jan. 9, 2013, 2:19 p.m. UTC | #1
On Tue, Jan 8, 2013 at 11:08 PM, Rob Clark <robdclark@gmail.com> wrote:
> 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.
>
> Signed-off-by: Rob Clark <robdclark@gmail.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  drivers/gpu/drm/drm_irq.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
> index 19c01ca..9bb83a5 100644
> --- a/drivers/gpu/drm/drm_irq.c
> +++ b/drivers/gpu/drm/drm_irq.c
> @@ -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);
> --
> 1.8.0.2
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
index 19c01ca..9bb83a5 100644
--- a/drivers/gpu/drm/drm_irq.c
+++ b/drivers/gpu/drm/drm_irq.c
@@ -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);