aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaushir Patuck <[email protected]>2024-11-15 18:07:17 +0000
committerMauro Carvalho Chehab <[email protected]>2024-12-19 11:50:13 +0000
commit57d10bcac67707caaa542e09dee86e13ea85defc (patch)
treedadb2318808a4fd3cad3c8cff3fc12cda82e2d35
parentmedia: i2c: imx412: Add missing newline to prints (diff)
downloadkernel-57d10bcac67707caaa542e09dee86e13ea85defc.tar.gz
kernel-57d10bcac67707caaa542e09dee86e13ea85defc.zip
media: imx296: Add standby delay during probe
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. During a cold-boot, reading the IMX296_SENSOR_INFO register would often return a value of 0x0000, if this delay is not present before. Fixes: cb33db2b6ccf ("media: i2c: IMX296 camera sensor driver") Cc: [email protected] Tested-by: Alexandru Ardelean <[email protected]> Signed-off-by: Naushir Patuck <[email protected]> Reviewed-by: Kieran Bingham <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r--drivers/media/i2c/imx296.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/i2c/imx296.c b/drivers/media/i2c/imx296.c
index 83149fa729c4..f3bec16b527c 100644
--- a/drivers/media/i2c/imx296.c
+++ b/drivers/media/i2c/imx296.c
@@ -954,6 +954,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",