diff options
author | Ondrej Jirman | 2024-02-17 19:49:11 +0100 |
---|---|---|
committer | Hans Verkuil | 2024-02-23 14:33:32 +0100 |
commit | 9d00ccabfbb522bb7a23ed329be2bf6aee04fe06 (patch) | |
tree | 4e197861ec2305ae27d1f3489f732afcfa60e02c | |
parent | 25a3c0c7d0221465da5d89f9b6551a26ac12f9fd (diff) |
media: i2c: dw9714: Fix occasional probe errors
The powerup delay was not observed during probe, leading to occasional
I2C communication failures in RPM suspend callback. Power delay is
properly observed in resume callback already.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | drivers/media/i2c/dw9714.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/i2c/dw9714.c b/drivers/media/i2c/dw9714.c index cc09b32ede60..84d29bcf0ccd 100644 --- a/drivers/media/i2c/dw9714.c +++ b/drivers/media/i2c/dw9714.c @@ -157,6 +157,8 @@ static int dw9714_probe(struct i2c_client *client) return rval; } + usleep_range(1000, 2000); + v4l2_i2c_subdev_init(&dw9714_dev->sd, client, &dw9714_ops); dw9714_dev->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS; |