]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov2735: request reset GPIO as initially asserted
authorElgin Perumbilly <elgin.perumbilly@siliconsignals.io>
Mon, 5 Jan 2026 11:34:30 +0000 (17:04 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:04 +0000 (23:33 +0100)
The reset GPIO must be requested in the asserted (HIGH) state to keep
the sensor in standby during probe and power sequencing.

Signed-off-by: Elgin Perumbilly <elgin.perumbilly@siliconsignals.io>
Acked-by: Tarang Raval <tarang.raval@siliconsignals.io>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov2735.c

index b966002041417247101d530e513a7dd6683ac606..dcb1add1fd9fc82ba7c606dd78ccc1527a0f6a2a 100644 (file)
@@ -993,7 +993,7 @@ static int ov2735_probe(struct i2c_client *client)
                                     "failed to parse endpoint configuration\n");
 
        ov2735->reset_gpio = devm_gpiod_get_optional(ov2735->dev,
-                                                    "reset", GPIOD_OUT_LOW);
+                                                    "reset", GPIOD_OUT_HIGH);
        if (IS_ERR(ov2735->reset_gpio))
                return dev_err_probe(ov2735->dev, PTR_ERR(ov2735->reset_gpio),
                                     "failed to get reset GPIO\n");