media: ov5670: Support device probe in non-zero ACPI D state
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 15 Dec 2021 11:08:59 +0000 (12:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 16 Dec 2021 19:54:52 +0000 (20:54 +0100)
commit1e583b56e5e7469efd4c8ac184daa56944840e72
tree13548573c701d03f18a34ede8a81550369ea7845
parent0e014f1a8d546fb591c46c461fdb35244294daa1
media: ov5670: 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/ov5670.c