summaryrefslogtreecommitdiff
path: root/linux/include/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:46:51 +0200
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:46:51 +0200
commit476b4e44d0836e75896fd12b0d5f33fdc706bee9 (patch)
tree3af1496753e0942443c7fbad50d19b785f55cef8 /linux/include/media
parent1e42790cf4308ec89ea72d095fe8aa119ea43dc5 (diff)
downloadmediapointer-dvb-s2-476b4e44d0836e75896fd12b0d5f33fdc706bee9.tar.gz
mediapointer-dvb-s2-476b4e44d0836e75896fd12b0d5f33fdc706bee9.tar.bz2
sh-mobile-ceu-camera: do not wait for interrupt when releasing buffers
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Patch [PATCH] video: use videobuf_waiton() in sh_mobile_ceu free_buffer() was not quite correct. It closed a race, but introduced a potential lock-up, if for some reason an interrupt does not come. This has been observed in tests with tw9910. This patch safely dequeues buffers without waiting for their completion. It also moves a buffer state assignment under a spinlock to make it atomic with queuing of the buffer. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Priority: low --- drivers/media/video/sh_mobile_ceu_camera.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-)
Diffstat (limited to 'linux/include/media')
0 files changed, 0 insertions, 0 deletions