[PATCH v6 2/2] media: i2c: imx412: Extend the power-on waiting time

Wenmeng Liu posted 2 patches 2 weeks, 3 days ago
There is a newer version of this series
[PATCH v6 2/2] media: i2c: imx412: Extend the power-on waiting time
Posted by Wenmeng Liu 2 weeks, 3 days ago
The Arducam IMX577 module requires a longer reset time than the 1000µs
configured in the current driver. Increase the wait time after power-on
to ensure proper initialization.

Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
---
 drivers/media/i2c/imx412.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c
index aa63dfc349181bf9c180ffd566b0317d05b410c1..9154c238949e4308755e757bd9c71f0b44f433ee 100644
--- a/drivers/media/i2c/imx412.c
+++ b/drivers/media/i2c/imx412.c
@@ -1037,7 +1037,11 @@ static int imx412_power_on(struct device *dev)
 		goto error_reset;
 	}
 
-	usleep_range(1000, 1200);
+	/*
+	 * Some IMX577 modules require a longer reset settle time.
+	 * Increasing the delay from 1ms to 10ms ensures reliable startup.
+	 */
+	usleep_range(10000, 12000);
 
 	return 0;
 

-- 
2.34.1

Re: [PATCH v6 2/2] media: i2c: imx412: Extend the power-on waiting time
Posted by Sakari Ailus 2 weeks, 3 days ago
Hi Wenmeng,

On Thu, Jan 22, 2026 at 05:31:19PM +0800, Wenmeng Liu wrote:
> The Arducam IMX577 module requires a longer reset time than the 1000µs
> configured in the current driver. Increase the wait time after power-on
> to ensure proper initialization.
> 
> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
> ---
>  drivers/media/i2c/imx412.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c
> index aa63dfc349181bf9c180ffd566b0317d05b410c1..9154c238949e4308755e757bd9c71f0b44f433ee 100644
> --- a/drivers/media/i2c/imx412.c
> +++ b/drivers/media/i2c/imx412.c
> @@ -1037,7 +1037,11 @@ static int imx412_power_on(struct device *dev)
>  		goto error_reset;
>  	}
>  
> -	usleep_range(1000, 1200);
> +	/*
> +	 * Some IMX577 modules require a longer reset settle time.
> +	 * Increasing the delay from 1ms to 10ms ensures reliable startup.
> +	 */

This still doesn't mention the Arducam module. :-(

> +	usleep_range(10000, 12000);
>  
>  	return 0;
>  
> 

-- 
Regards,

Sakari Ailus
Re: [PATCH v6 2/2] media: i2c: imx412: Extend the power-on waiting time
Posted by Wenmeng Liu 2 weeks, 3 days ago
Hi Sakari,

On 1/22/2026 8:37 PM, Sakari Ailus wrote:
> Hi Wenmeng,
> 
> On Thu, Jan 22, 2026 at 05:31:19PM +0800, Wenmeng Liu wrote:
>> The Arducam IMX577 module requires a longer reset time than the 1000µs
>> configured in the current driver. Increase the wait time after power-on
>> to ensure proper initialization.
>>
>> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
>> ---
>>   drivers/media/i2c/imx412.c | 6 +++++-
>>   1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c
>> index aa63dfc349181bf9c180ffd566b0317d05b410c1..9154c238949e4308755e757bd9c71f0b44f433ee 100644
>> --- a/drivers/media/i2c/imx412.c
>> +++ b/drivers/media/i2c/imx412.c
>> @@ -1037,7 +1037,11 @@ static int imx412_power_on(struct device *dev)
>>   		goto error_reset;
>>   	}
>>   
>> -	usleep_range(1000, 1200);
>> +	/*
>> +	 * Some IMX577 modules require a longer reset settle time.
>> +	 * Increasing the delay from 1ms to 10ms ensures reliable startup.
>> +	 */
> 
> This still doesn't mention the Arducam module. :-(

Sorry about this, will mention to...

Thanks,
Wenmeng