]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: i2c: ov7251: Set enable GPIO low in probe
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 17 Jan 2025 13:38:13 +0000 (15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:24 +0000 (10:45 +0200)
commit a1963698d59cec83df640ded343af08b76c8e9c5 upstream.

Set the enable GPIO low when acquiring it.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/ov7251.c

index 675fb37a6feaec82614028c3bb9428a878d94c64..5362680fc460c9bedeb6524ba97389424f202441 100644 (file)
@@ -1675,7 +1675,7 @@ static int ov7251_probe(struct i2c_client *client)
                return PTR_ERR(ov7251->analog_regulator);
        }
 
-       ov7251->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH);
+       ov7251->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
        if (IS_ERR(ov7251->enable_gpio)) {
                dev_err(dev, "cannot get enable gpio\n");
                return PTR_ERR(ov7251->enable_gpio);