projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2efd8b7
)
drivers: media: imx296: Add standby delay during probe
author
Naushir Patuck
<naush@raspberrypi.com>
Fri, 28 Jul 2023 11:00:40 +0000
(12:00 +0100)
committer
Dom Cobley
<popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:38 +0000
(11:33 +0000)
Add a 2-5ms delay when coming out of standby and before reading the
sensor info register durning probe, as instructed by the datasheet. This
standby delay is already present when the sensor starts streaming.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/i2c/imx296.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/imx296.c
b/drivers/media/i2c/imx296.c
index
f942f66
..
395bfe4
100644
(file)
--- a/
drivers/media/i2c/imx296.c
+++ b/
drivers/media/i2c/imx296.c
@@
-940,6
+940,8
@@
static int imx296_identify_model(struct imx296 *sensor)
return ret;
}
+ usleep_range(2000, 5000);
+
ret = imx296_read(sensor, IMX296_SENSOR_INFO);
if (ret < 0) {
dev_err(sensor->dev, "failed to read sensor information (%d)\n",