]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: dw9714: Fix powerup sequence
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 10 Dec 2025 07:53:43 +0000 (07:53 +0000)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 15 Jan 2026 10:32:14 +0000 (11:32 +0100)
commit401aec35ac7bd04b4018a519257b945abb88e26c
treed0a3d98ca6f02dfe4d689a1898a512b931debca6
parent973e42fd5d2b397bff34f0c249014902dbf65912
media: dw9714: Fix powerup sequence

We have experienced seen multiple I2C errors while doing stress test on
the module:

dw9714 i2c-PRP0001:01: dw9714_vcm_resume I2C failure: -5
dw9714 i2c-PRP0001:01: I2C write fail

Inspecting the powerup sequence we found that it does not match the
documentation at:
https://blog.arducam.com/downloads/DW9714A-DONGWOON(Autofocus_motor_manual).pdf

"""
(2) DW9714A requires waiting time of 12ms after power on. During this
waiting time, the offset calibration of internal amplifier is
operating for minimization of output offset current .
"""

This patch increases the powerup delay to follow the documentation.

Fixes: 9d00ccabfbb5 ("media: i2c: dw9714: Fix occasional probe errors")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Tested-by: Neil Sun <neil.sun@lcfuturecenter.com>
Reported-by: Naomi Huang <naomi.huang@lcfuturecenter.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/dw9714.c