From: Ian Molton Date: Mon, 26 Jan 2015 17:08:39 +0000 (-0300) Subject: [media] rcar_vin: helper function for streaming stop X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~131^2~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4abec46833c923c1be8dfee1d4eb1fff12cceb21;p=pandora-kernel.git [media] rcar_vin: helper function for streaming stop The code that tests that capture from a stream has stopped is presently insufficient and the potential for a race condition exists where frame capture may generate an interrupt between requesting the capture process halt and freeing buffers. This patch refactors code out of rcar_vin_videobuf_release() and into rcar_vin_wait_stop_streaming(), and ensures there are calls in places where we need to know that capturing has finished. Signed-off-by: Ian Molton Signed-off-by: William Towle Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed