media: atomisp: Bind and do power-management without firmware
authorHans de Goede <hdegoede@redhat.com>
Sat, 30 Dec 2023 14:31:41 +0000 (15:31 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 1 Feb 2024 06:04:58 +0000 (07:04 +0100)
commita6be73e97facfdc1d4e3117afcbc6fdbaeae7726
treeba84f6e575b38c9724d9a4318607d75b2232468f
parent25752a62312f5a5001ed4939a0cbb19c5bae692f
media: atomisp: Bind and do power-management without firmware

The ISP needs to be turned off in a special manner for the SoC
to be able to reach S0i3 during suspend.

When the firmware is missing still bind to the PCI device and
run in pm-only mode which takes care of turning the ISP off
(including turning it off again if the firmware has turned it
on during resume).

In this new pm-only mode the atomisp driver works exactly the same
as the non-staging, pm-only drivers/platform/x86/intel/atomisp2/pm.c
driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_internal.h
drivers/staging/media/atomisp/pci/atomisp_v4l2.c