media: i2c: fix sc301iot reset when probe for fastboot

[ISSUE]
device I2C communication is fail due to reset

Change-Id: I847523a8df22727b6863a4dbe2cdad11b104435c
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
This commit is contained in:
Lan Honglin
2023-06-07 18:39:13 +08:00
committed by Tao Huang
parent 0d1ab9be85
commit c3bcd08fcf

View File

@@ -1723,6 +1723,8 @@ static int __SC301IOT_power_on(struct SC301IOT *SC301IOT)
dev_err(dev, "Failed to enable xvclk\n");
goto disable_clk;
}
if (SC301IOT->is_thunderboot)
return 0;
if (!IS_ERR(SC301IOT->reset_gpio))
gpiod_set_value_cansleep(SC301IOT->reset_gpio, 0);
@@ -1731,9 +1733,6 @@ static int __SC301IOT_power_on(struct SC301IOT *SC301IOT)
dev_err(dev, "Failed to enable regulators\n");
goto disable_clk;
}
if (SC301IOT->is_thunderboot)
return 0;
if (!IS_ERR(SC301IOT->reset_gpio))
gpiod_set_value_cansleep(SC301IOT->reset_gpio, 1);