Skip to content

Commit

Permalink
drm/exynos: fimd: unify call to exynos_drm_crtc_finish_pageflip()
Browse files Browse the repository at this point in the history
Unify handling of finished plane update to prepare for a following patch
that will check for the START and START_S regs to really make sure that
the plane was updated.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Gustavo Padovan authored and Inki Dae committed Aug 30, 2015
1 parent bb0fa93 commit fc75f71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/gpu/drm/exynos/exynos_drm_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,15 +896,15 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
if (ctx->pipe < 0 || !ctx->drm_dev)
goto out;

if (ctx->i80_if) {
exynos_drm_crtc_finish_pageflip(ctx->crtc);
if (!ctx->i80_if)
drm_crtc_handle_vblank(&ctx->crtc->base);

exynos_drm_crtc_finish_pageflip(ctx->crtc);

if (ctx->i80_if) {
/* Exits triggering mode */
atomic_set(&ctx->triggering, 0);
} else {
drm_crtc_handle_vblank(&ctx->crtc->base);
exynos_drm_crtc_finish_pageflip(ctx->crtc);

/* set wait vsync event to zero and wake up queue. */
if (atomic_read(&ctx->wait_vsync_event)) {
atomic_set(&ctx->wait_vsync_event, 0);
Expand Down

0 comments on commit fc75f71

Please sign in to comment.