mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user