media: ov8856: Do not check for for module version
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 23 Mar 2023 22:44:20 +0000 (23:44 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 11 Apr 2023 16:54:00 +0000 (18:54 +0200)
commit5a4e1b5aed2a36a10d6a3b30fafb6b3bf41c3186
tree69e723585e29b8060d3f7b1e000885d95a2b2e24
parentab190665276b8fac178663753f0a745156fcc0f5
media: ov8856: Do not check for for module version

It the device is probed in non-zero ACPI D state, the module
identification is delayed until the first streamon.

The module identification has two parts: deviceID and version. To rea
the version we have to enable OTP read. This cannot be done during
streamon, becase it modifies REG_MODE_SELECT.

Since the driver has the same behaviour for all the module versions, do
not read the module version from the sensor's OTP.

Cc: stable@vger.kernel.org
Fixes: 0e014f1a8d54 ("media: ov8856: support device probe in non-zero ACPI D state")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov8856.c