Re: [PATCH] media: imx335: Fix reset-gpio handling

From: Sakari Ailus
Date: Mon Jul 29 2024 - 03:41:52 EST


Hi Umang,

Thanks for the patch.

On Mon, Jul 29, 2024 at 11:35:35AM +0530, Umang Jain wrote:
> The imx335 reset-gpio is initialised with GPIO_OUT_LOW during probe.

Should it be initialised to high instead, to enable reset?

I think you should also add a Fixes: tag to this and Cc: stable.

> However, the reset-gpio logical value is set to 1 in during power-on
> and to 0 on power-off. This is incorrect as the reset line
> cannot be high during power-on and low during power-off.
>
> Rectify the logical value of reset-gpio so that it is set to
> 0 during power-on and to 1 during power-off.
>
> Signed-off-by: Umang Jain <umang.jain@xxxxxxxxxxxxxxxx>

--
Kind regards,

Sakari Ailus