media: ov5675: Support device probe in non-zero ACPI D state
authorBingbu Cao <bingbu.cao@intel.com>
Wed, 15 Dec 2021 11:09:02 +0000 (12:09 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 16 Dec 2021 19:54:52 +0000 (20:54 +0100)
commit5525fd86ef7888f1eb279f27806ac9d4bb4303c2
tree40d2b57703fd14dc8db258a40d2aaccbeca71ea0
parent56ca3be85f3d33d050e65027c63ccad4425581c9
media: ov5675: Support device probe in non-zero ACPI D state

Tell ACPI device PM code that the driver supports the device being in
non-zero ACPI D state when the driver's probe function is entered.

Also do identification on the first access of the device, whether in probe
or when starting streaming.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov5675.c