]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: ov08x40: Add missing ov08x40_identify_module() call on stream-start
authorHans de Goede <hdegoede@redhat.com>
Fri, 20 Dec 2024 14:41:28 +0000 (15:41 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:40 +0000 (15:22 +0100)
commitebf185efadb71bd5344877be683895b6b18d7edf
tree2c55e2cb9c135bc40a545f091129ac1ec97dcb90
parentdb718c2745e3f9648179ddc62da4260f74765475
media: ov08x40: Add missing ov08x40_identify_module() call on stream-start

The driver might skip the ov08x40_identify_module() on probe() based on
the acpi_dev_state_d0() check done in probe().

If the ov08x40_identify_module() call is skipped on probe() it should
be done on the first stream start. Add the missing call.

Note ov08x40_identify_module() will only do something on its first call,
subsequent calls are no-ops.

Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fixes: b1a42fde6e07 ("media: ov08x40: Avoid sensor probing in D0 state")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ov08x40.c