]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov7251: Introduce 1 ms delay between regulators and en GPIO
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 17 Jan 2025 14:04:02 +0000 (16:04 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:52 +0000 (15:22 +0100)
Lift the xshutdown (enable) GPIO 1 ms after enabling the regulators, as
required by the sensor's power-up sequence.

Fixes: d30bb512da3d ("media: Add a driver for the ov7251 camera sensor")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ov7251.c

index f3e2d26bb8408ad005113009fe42f368afecccc9..3226888d77e9c7528c8f32dc1276dde91e508eab 100644 (file)
@@ -922,6 +922,8 @@ static int ov7251_set_power_on(struct device *dev)
                return ret;
        }
 
+       usleep_range(1000, 1100);
+
        gpiod_set_value_cansleep(ov7251->enable_gpio, 1);
 
        /* wait at least 65536 external clock cycles */