OSDN Git Service

media: ov2740: support device probe in non-zero ACPI D state
authorBingbu Cao <bingbu.cao@intel.com>
Wed, 15 Dec 2021 11:09:00 +0000 (12:09 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 16 Dec 2021 19:54:52 +0000 (20:54 +0100)
commitada2c4f54d0ae933c4f257abf604849ef0f6de4a
treecf8f7cfbf17e648910ea3fba5c1133b54d1169b5
parent1e583b56e5e7469efd4c8ac184daa56944840e72
media: ov2740: 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/ov2740.c