]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: imx412: Assert reset GPIO during probe
authorWenmeng Liu <wenmeng.liu@oss.qualcomm.com>
Fri, 23 Jan 2026 09:19:55 +0000 (17:19 +0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:29 +0000 (01:05 +0100)
Assert the reset GPIO before first power up. This avoids a mismatch where
the first power up (when the reset GPIO defaults deasserted) differs from
subsequent cycles.

Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
Fixes: 9214e86c0cc1 ("media: i2c: Add imx412 camera sensor driver")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/imx412.c

index b3826f80354703b17b416dc233854da3f5736e38..aa63dfc349181bf9c180ffd566b0317d05b410c1 100644 (file)
@@ -925,7 +925,7 @@ static int imx412_parse_hw_config(struct imx412 *imx412)
 
        /* Request optional reset pin */
        imx412->reset_gpio = devm_gpiod_get_optional(imx412->dev, "reset",
-                                                    GPIOD_OUT_LOW);
+                                                    GPIOD_OUT_HIGH);
        if (IS_ERR(imx412->reset_gpio)) {
                dev_err(imx412->dev, "failed to get reset gpio %pe\n",
                        imx412->reset_gpio);