mbox series

[0/2] vb2: remove VB2_BUF_STATE_REQUEUEING

Message ID 20190228123546.76270-1-hverkuil-cisco@xs4all.nl (mailing list archive)
Headers show
Series vb2: remove VB2_BUF_STATE_REQUEUEING | expand

Message

Hans Verkuil Feb. 28, 2019, 12:35 p.m. UTC
The VB2_BUF_STATE_REQUEUEING leads to unordered behavior in vb2.
The only driver that used it was the cobalt driver, and replacing
VB2_BUF_STATE_REQUEUEING by VB2_BUF_STATE_ERROR is sufficient.

In addition, VB2_BUF_STATE_REQUEUEING can't be used with the Request
API, so removing support for this state altogether simplifies matters.

Regards,

	Hans

Hans Verkuil (2):
  cobalt: replace VB2_BUF_STATE_REQUEUEING by _ERROR
  vb2: drop VB2_BUF_STATE_REQUEUEING

 .../media/common/videobuf2/videobuf2-core.c   | 15 +++----------
 .../media/common/videobuf2/videobuf2-v4l2.c   |  1 -
 drivers/media/pci/cobalt/cobalt-irq.c         |  2 +-
 include/media/videobuf2-core.h                | 21 ++++++-------------
 4 files changed, 10 insertions(+), 29 deletions(-)