All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrzej Hajda <a.hajda@samsung.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>,
	dri-devel@lists.freedesktop.org,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Subject: [RFC PATCH 4/6] drm/fsl-dcu: use helper for arming crtc completion event
Date: Tue, 27 Sep 2016 15:36:17 +0200	[thread overview]
Message-ID: <1474983379-852-5-git-send-email-a.hajda@samsung.com> (raw)
In-Reply-To: <1474983379-852-1-git-send-email-a.hajda@samsung.com>

Replace custom code with core helper.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c
index 3371635..8121bfd 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c
@@ -25,18 +25,7 @@
 static void fsl_dcu_drm_crtc_atomic_flush(struct drm_crtc *crtc,
 					  struct drm_crtc_state *old_crtc_state)
 {
-	struct drm_pending_vblank_event *event = crtc->state->event;
-
-	if (event) {
-		crtc->state->event = NULL;
-
-		spin_lock_irq(&crtc->dev->event_lock);
-		if (drm_crtc_vblank_get(crtc) == 0)
-			drm_crtc_arm_vblank_event(crtc, event);
-		else
-			drm_crtc_send_vblank_event(crtc, event);
-		spin_unlock_irq(&crtc->dev->event_lock);
-	}
+	drm_crtc_arm_completion_event(crtc);
 }
 
 static void fsl_dcu_drm_disable_crtc(struct drm_crtc *crtc)
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2016-09-27 13:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20160927133630eucas1p2929d2d5a0cd3c8d8ba40d94cf69801cf@eucas1p2.samsung.com>
2016-09-27 13:36 ` [RFC PATCH 0/6] add helper for arming crtc completion event Andrzej Hajda
     [not found]   ` <CGME20160927133636eucas1p139c88cf29008dc597dbbbcabc7fea9c9@eucas1p1.samsung.com>
2016-09-27 13:36     ` [RFC PATCH 1/6] drm: " Andrzej Hajda
2016-09-29  9:44       ` Daniel Vetter
2016-09-29 13:39         ` Andrzej Hajda
2016-09-29 14:24           ` Daniel Vetter
     [not found]   ` <CGME20160927133636eucas1p185e6bd5d9d324399078b61779225f4df@eucas1p1.samsung.com>
2016-09-27 13:36     ` [RFC PATCH 2/6] drm/hdlcd: use " Andrzej Hajda
     [not found]   ` <CGME20160927133637eucas1p149185d3cd9a657fa5a9ff6986db25f5f@eucas1p1.samsung.com>
2016-09-27 13:36     ` [RFC PATCH 3/6] drm/malidp: " Andrzej Hajda
     [not found]   ` <CGME20160927133637eucas1p1fda7edc6ed60b72c500b89f367f5cbf3@eucas1p1.samsung.com>
2016-09-27 13:36     ` Andrzej Hajda [this message]
     [not found]   ` <CGME20160927133638eucas1p166ffd9c015f30b48e93dc59f21b57781@eucas1p1.samsung.com>
2016-09-27 13:36     ` [RFC PATCH 5/6] drm/hisilicon: " Andrzej Hajda
     [not found]   ` <CGME20160927133638eucas1p16614f59ca079786798cd497ecfeaa106@eucas1p1.samsung.com>
2016-09-27 13:36     ` [RFC PATCH 6/6] drm/sun4i: " Andrzej Hajda
2016-09-27 15:09       ` Alex Deucher
2016-09-29  9:44         ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474983379-852-5-git-send-email-a.hajda@samsung.com \
    --to=a.hajda@samsung.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=m.szyprowski@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.