]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:10:05 +0000 (20:10 +0100)
commite86a57ecdfac68330a19a87bdb995acc31898cbb
tree58692ca27caa468f8d7ea6505eba428a2995ba65
parent5f9614d0540b35b018a4ddb21d1a184e098f6758
media: i2c: ov5640: Fix post-reset delay

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>
drivers/media/i2c/ov5640.c