]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: i2c: ov5640: Fix post-reset delay
authorLoic Poulain <loic.poulain@linaro.org>
Wed, 30 Jan 2019 16:48:07 +0000 (11:48 -0500)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commita459729701c82e347e84a987554e6c1ad568fdec
tree8fe3794513efb2522147e279816febd90a39d172
parent7cf95c171cebde154ca4be9211354a87ad451dd8
media: i2c: ov5640: Fix post-reset delay

BugLink: https://bugs.launchpad.net/bugs/1837952
commit 1d4c41f3d887bcd66e82cb2fda124533dad8808a upstream.

According to the ov5640 specification (2.7 power up sequence), host can
access the sensor's registers 20ms after reset. Trying to access them
before leads to undefined behavior and result in sporadic initialization
errors.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: Adam Ford <aford173@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/i2c/ov5640.c