media: i2c: dw9714: Fix occasional probe errors
authorOndrej Jirman <megi@xff.cz>
Sat, 17 Feb 2024 18:49:11 +0000 (19:49 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 23 Feb 2024 13:33:32 +0000 (14:33 +0100)
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>
drivers/media/i2c/dw9714.c

index cc09b32ede601d2709a48ac855abfb545a883af2..84d29bcf0ccd47a6c360bc4495531c6c3ff9d1ae 100644 (file)
@@ -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;