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 31, 2023
1 parent 368412b commit 2058843
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 @@ -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",
Expand Down

0 comments on commit 2058843

Please sign in to comment.