]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: vb2: Fix regression on poll() for RW mode
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Mon, 25 Apr 2016 09:04:45 +0000 (06:04 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Apr 2016 13:21:23 +0000 (10:21 -0300)
commitff5b3cfb553b96307ce1bf5b73de31dd73cd2cf7
tree1fe998001923b6f0a60bbdac1718cde4a1ce928a
parent77d019fe08731d997ee40619f07b842c4c0f9526
[media] media: vb2: Fix regression on poll() for RW mode

When using a device is read/write mode, vb2 does not handle properly the
first select/poll operation.

The reason for this, is that when this code has been refactored, some of
the operations have changed their order, and now fileio emulator is not
started.

The reintroduced check to the core is enabled by a quirk flag, that
avoids this check by other subsystems like DVB.

Fixes: 826aeb373c00 ("media] media: videobuf2: Separate vb2_poll()")
Reported-by: Dimitrios Katsaros <patcherwork@gmail.com>
Cc: Junghak Sung <jh1009.sung@samsung.com>
Cc: <stable@vger.kernel.org> # for v4.5 and up
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
drivers/media/v4l2-core/videobuf2-v4l2.c
include/media/videobuf2-core.h