提交 36a37e2d 编写于 作者: L Loic Poulain 提交者: Xie XiuQi

media: i2c: ov5640: Fix post-reset delay

commit 1d4c41f3 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: NLoic Poulain <loic.poulain@linaro.org>
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: Adam Ford <aford173@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 de773b6d
...@@ -1759,7 +1759,7 @@ static void ov5640_reset(struct ov5640_dev *sensor) ...@@ -1759,7 +1759,7 @@ static void ov5640_reset(struct ov5640_dev *sensor)
usleep_range(1000, 2000); usleep_range(1000, 2000);
gpiod_set_value_cansleep(sensor->reset_gpio, 0); gpiod_set_value_cansleep(sensor->reset_gpio, 0);
usleep_range(5000, 10000); usleep_range(20000, 25000);
} }
static int ov5640_set_power_on(struct ov5640_dev *sensor) static int ov5640_set_power_on(struct ov5640_dev *sensor)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册