linux/drivers/media/video/s5p-fimc
Sylwester Nawrocki 4ecbf5d1d2 [media] s5p-fimc: Prevent hanging on device close and fix the locking
Rework the locking in m2m driver to assure proper operation on SMP systems.

When job_abort or stop_streaming was called to immediately shutdown
a memory-to-memory transaction video buffers scheduled for processing
were never returned to vb2 and v4l2_m2m_job_finish was not called
which led to hanging.

Correct this and also return the unprocessed buffers to vb2 marking
them as erroneous, in case the end of frame interrupt do not occur.

Reported-by: Sewoon Park <seuni.park@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-03-22 04:54:15 -03:00
..
fimc-capture.c [media] s5p-fimc: Prevent hanging on device close and fix the locking 2011-03-22 04:54:15 -03:00
fimc-core.c [media] s5p-fimc: Prevent hanging on device close and fix the locking 2011-03-22 04:54:15 -03:00
fimc-core.h [media] s5p-fimc: Prevent hanging on device close and fix the locking 2011-03-22 04:54:15 -03:00
fimc-reg.c [media] s5p-fimc: fix MSCTRL.FIFO_CTRL for performance enhancement 2011-03-21 20:31:40 -03:00
Makefile [media] s5p-fimc: Add camera capture support 2010-10-21 07:55:47 -02:00
regs-fimc.h [media] s5p-fimc: fix MSCTRL.FIFO_CTRL for performance enhancement 2011-03-21 20:31:40 -03:00