Skip to content

Commit 5fb3b30

Browse files
naushirpelwell
authored andcommitted
drivers: 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. Signed-off-by: Naushir Patuck <[email protected]>
1 parent 431319d commit 5fb3b30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/media/i2c/imx296.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,8 @@ static int imx296_identify_model(struct imx296 *sensor)
10221022
return ret;
10231023
}
10241024

1025+
usleep_range(2000, 5000);
1026+
10251027
ret = imx296_read(sensor, IMX296_SENSOR_INFO);
10261028
if (ret < 0) {
10271029
dev_err(sensor->dev, "failed to read sensor information (%d)\n",

0 commit comments

Comments
 (0)