media: s5p-g2d: Implement wait_prepare and wait_finish
authorEzequiel Garcia <ezequiel@collabora.com>
Fri, 15 Jun 2018 19:07:26 +0000 (15:07 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 4 Jul 2018 12:00:53 +0000 (08:00 -0400)
commitb53e19e16153ff8a0a560151ed27c3bc8d846de2
tree6c360e8e9d54f2a8a5dd51771682237ac4cb42de
parentf1db5d978d88c75cfb1bcac74fbf06f77b86b7c3
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 <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/s5p-g2d/g2d.c