]> git.baikalelectronics.ru Git - kernel.git/commit
media: coda: fix V4L2_DEC_CMD_STOP when all buffers are already consumed
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 18 Jun 2019 16:45:13 +0000 (12:45 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 18:22:08 +0000 (14:22 -0400)
commit155714477903de4eb603fc04c60b56bc4bab2e30
treeb91cb844573f161362274e2b611e1b8987caff6f
parent9cf9205d8ff99c961278ae386eb412d9fd261362
media: coda: fix V4L2_DEC_CMD_STOP when all buffers are already consumed

When the DEC_CMD_STOP command is issued after the context has already
consumed all the queued buffers, we need to make sure to wake the
destination queue with last_buffer_dequeued set, to allow userspace to
make progress in its EOS handling.

As there might still be picture run workers pending at that point, we
need to synchronize with them, so the sequence number comparison reads
stable values.

 reword commit message]

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-common.c