media: atomisp: Allow system suspend to continue with open /dev/video# nodes
authorHans de Goede <hdegoede@redhat.com>
Fri, 12 May 2023 15:24:32 +0000 (16:24 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:50:06 +0000 (14:50 +0100)
commit4d141d3fae3e3d8b85817bde3b6b6a0e7b08eb3b
treeb3f4b787fda768b368b5d1c4ea2e712d282b9fea
parent2cb61011bfed4344185fcfe64adf2c9f2353eaa3
media: atomisp: Allow system suspend to continue with open /dev/video# nodes

Just having a /dev/video# node open is not a reason to block system
suspend. At least when userspace is not streaming.

In that case the worst case scenario is that streams have been created,
but we can just destroy those before powering off the ISP and
recreate the streams on resume.

Fixing suspend when streaming is left as a FIXME item for later.

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