From: Ezequiel Garcia Date: Fri, 15 Jun 2018 19:07:26 +0000 (-0400) Subject: media: s5p-g2d: Implement wait_prepare and wait_finish X-Git-Tag: v5.15~8227^2~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b53e19e16153ff8a0a560151ed27c3bc8d846de2;p=platform%2Fkernel%2Flinux-starfive.git media: s5p-g2d: Implement wait_prepare and wait_finish This driver is currently specifying a vb2_queue lock, which means it straightforward to implement wait_prepare and wait_finish. Having these callbacks releases the queue lock while blocking, which improves latency by allowing for example streamoff or qbuf operations while waiting in dqbuf. Signed-off-by: Ezequiel Garcia Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c index 3735c20..6b1c234 100644 --- a/drivers/media/platform/s5p-g2d/g2d.c +++ b/drivers/media/platform/s5p-g2d/g2d.c @@ -142,6 +142,8 @@ static const struct vb2_ops g2d_qops = { .queue_setup = g2d_queue_setup, .buf_prepare = g2d_buf_prepare, .buf_queue = g2d_buf_queue, + .wait_prepare = vb2_ops_wait_prepare, + .wait_finish = vb2_ops_wait_finish, }; static int queue_init(void *priv, struct vb2_queue *src_vq,