media: atomisp: On streamoff wait for buffers owned by the CSS to be given back
authorHans de Goede <hdegoede@redhat.com>
Fri, 30 Sep 2022 19:05:44 +0000 (20:05 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:12:20 +0000 (08:12 +0000)
commitc7194b21809ec53db2f8ae5a5e2389ed774d2af6
treecfb4c238146fbe469c842e775c843e17846b9c23
parentaf6b9dfddcec827fe9c0a7975217f9e126d37454
media: atomisp: On streamoff wait for buffers owned by the CSS to be given back

There is no guarantee that when we stop the pipeline all buffers owned
by the CSS are cleanly returned to the videobuf queue.

This is a problem with videobuf2 which will complain loudly when not
all buffers have been returned after the streamoff() queue op has
returned.

And this also allows removing a WARN() in the continuous mode path.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_fops.c
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
drivers/staging/media/atomisp/pci/atomisp_subdev.h