]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: vb2: Fix regression on poll() for RW mode
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Mon, 25 Apr 2016 09:04:45 +0000 (06:04 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:08 +0000 (14:49 -0700)
commit097b0525284c991c396b5a95c78426c8e1b93f3c
tree730e29cd9b0c617567ab9e3d7d5bdbb31064ec6b
parent0356e39aaf588e0099a9bd59916a65ac3c00030c
media: vb2: Fix regression on poll() for RW mode

commit b93876845c5e30a92964eeb088d9d2e024118022 upstream.

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: 49d8ab9feaf2 ("media] media: videobuf2: Separate vb2_poll()")
Reported-by: Dimitrios Katsaros <patcherwork@gmail.com>
Cc: Junghak Sung <jh1009.sung@samsung.com>
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/v4l2-core/videobuf2-core.c
drivers/media/v4l2-core/videobuf2-v4l2.c
include/media/videobuf2-core.h