Re: [PATCH v7 1/2] media: i2c: imx412: Assert reset GPIO during probe
From: Sakari Ailus
Date: Tue Mar 03 2026 - 08:41:27 EST
Hi Wenmeng,
On Fri, Jan 23, 2026 at 05:19:55PM +0800, Wenmeng Liu wrote:
> 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@xxxxxxxxxxxxxxxx>
I'll add:
Fixes: 9214e86c0cc1 ("media: i2c: Add imx412 camera sensor driver")
Cc: stable@xxxxxxxxxxxxxxx
> ---
> drivers/media/i2c/imx412.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c
> index b3826f80354703b17b416dc233854da3f5736e38..aa63dfc349181bf9c180ffd566b0317d05b410c1 100644
> --- a/drivers/media/i2c/imx412.c
> +++ b/drivers/media/i2c/imx412.c
> @@ -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);
>
--
Kind regards,
Sakari Ailus