mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] media: i2c: it6625: wait at least 700 ms after reset release
@ 2026-10-06  8:31 Hermes Wu via B4 Relay
  0 siblings, 0 replies; only message in thread
From: Hermes Wu via B4 Relay @ 2026-10-06  8:31 UTC (permalink / raw)
  To: Hermes Wu, Mauro Carvalho Chehab, Hans Verkuil
  Cc: linux-media, linux-kernel, Hermes Wu

From: Hermes Wu <Hermes.wu@ite.com.tw>

The IT6625/IT6626 are controlled through an on-chip MCU, which needs at
least 700 ms after the reset line is released before it boots and
answers on the I2C interface. The probe path only waits 10 ms before
reading the chip ID, so the read can happen before the MCU is up and
probe then fails.

Wait at least 700 ms after releasing reset.

Fixes: 142e5f00bd57 ("media: i2c: add driver for ITE IT6625/IT6626")
Signed-off-by: Hermes Wu <Hermes.wu@ite.com.tw>
---
 drivers/media/i2c/it6625.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/it6625.c b/drivers/media/i2c/it6625.c
index b74df9dbf8c2cab7461c69bc0f926141ed7a506c..585c8835e218c568709a057d4afc3c5cbd1dccff 100644
--- a/drivers/media/i2c/it6625.c
+++ b/drivers/media/i2c/it6625.c
@@ -2260,7 +2260,8 @@ static int it6625_probe(struct i2c_client *client)
 	if (it6625->reset_gpio) {
 		usleep_range(1000, 2000);
 		gpiod_set_value_cansleep(it6625->reset_gpio, 0);
-		usleep_range(10000, 11000);
+		/* the MCU needs at least 700 ms to boot after reset release */
+		msleep(700);
 	}
 
 	err = it6625_regmap_i2c_init(client, it6625);

---
base-commit: 89a3d2a2237e017cdbefcb036db71ce74e67faf5
change-id: 20261006-upstream-it6625-reset-delay-3239507c5f09

Best regards,
-- 
Hermes Wu <Hermes.wu@ite.com.tw>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-06  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06  8:31 [PATCH] media: i2c: it6625: wait at least 700 ms after reset release Hermes Wu via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®