Skip to content

Commit

Permalink
drivers: media: imx296: Add standby delay during probe
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
naushir authored and pelwell committed Jul 28, 2023
1 parent 431319d commit 5fb3b30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/i2c/imx296.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,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",
Expand Down

0 comments on commit 5fb3b30

Please sign in to comment.