[media] media: coda: stop all queues in case of lockup
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 25 Jul 2012 12:22:07 +0000 (09:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Sep 2012 19:51:19 +0000 (16:51 -0300)
commit2fb57f06319ec71c94d842281326aa575066f188
tree34f21c4f399918c3d87740d51b3c27a8fb4064c7
parente11f3e6ef64726c64dae435f7059715adf5de2ff
[media] media: coda: stop all queues in case of lockup

Add a 1 second timeout for each PIC_RUN command to the CODA. In
case it locks up, stop all queues and dequeue remaining buffers.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c