[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200612135355.30286-10-andrey.konovalov@linaro.org>
Date: Fri, 12 Jun 2020 16:53:54 +0300
From: Andrey Konovalov <andrey.konovalov@...aro.org>
To: mchehab@...nel.org, sakari.ailus@....fi,
manivannan.sadhasivam@...aro.org
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
c.barrett@...mos.com, a.brela@...mos.com, peter.griffin@...aro.org,
Andrey Konovalov <andrey.konovalov@...aro.org>
Subject: [PATCH v5 09/10] media: i2c: imx290: Move the settle time delay out of loop
From: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
The 10ms settle time is needed only at the end of all consecutive
register writes. So move the delay to outside of the for loop of
imx290_set_register_array().
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
Signed-off-by: Andrey Konovalov <andrey.konovalov@...aro.org>
---
drivers/media/i2c/imx290.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c
index fd147fac5ef2..02001c1b0dfc 100644
--- a/drivers/media/i2c/imx290.c
+++ b/drivers/media/i2c/imx290.c
@@ -404,11 +404,11 @@ static int imx290_set_register_array(struct imx290 *imx290,
ret = imx290_write_reg(imx290, settings->reg, settings->val);
if (ret < 0)
return ret;
-
- /* Settle time is 10ms for all registers */
- msleep(10);
}
+ /* Provide 10ms settle time */
+ msleep(10);
+
return 0;
}
--
2.17.1
Powered by blists - more mailing lists