]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: Implement videobuf2 .wait_prepare and .wait_finish operations
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Fri, 8 Feb 2013 23:54:54 +0000 (00:54 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 4 Jun 2013 20:27:50 +0000 (23:27 +0300)
commit8c9e703154acdeb382f8703252ea2c4a62034051
tree93442b547d47751b336d6b80d711a55536c076ef
parentd4238d06380e6f9e15c7c6df29f28f5cad5aabec
usb: gadget: uvc: Implement videobuf2 .wait_prepare and .wait_finish operations

Those optional operations are used to release and reacquire the queue
lock when videobuf2 needs to perform operations that sleep for a long
time, such as waiting for a buffer to be complete. Implement them to
avoid blocking qbuf or streamoff calls when a dqbuf is in progress.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/uvc_queue.c