media: i2c: imx415: adjusting the power on timing

Fixes: 920198cd6c ("media: i2c: imx415 adapt sleep_wakeup")
Change-Id: I184eff8ca204ae09abe86e31d4b70f9876fcfaf8
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
This commit is contained in:
Lan Honglin
2024-01-24 10:19:37 +08:00
committed by Tao Huang
parent a02a6dc93e
commit 21cc4fd00c

View File

@@ -2466,15 +2466,15 @@ int __imx415_power_on(struct imx415 *imx415)
if (imx415->is_thunderboot)
return 0;
/* At least 20us between XCLR and I2C communication */
usleep_range(20*1000, 30*1000);
ret = regulator_bulk_enable(IMX415_NUM_SUPPLIES, imx415->supplies);
if (ret < 0) {
dev_err(dev, "Failed to enable regulators\n");
goto err_pinctrl;
}
/* At least 20us between XCLR and I2C communication */
usleep_range(20*1000, 30*1000);
return 0;
err_pinctrl: