Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
media: i2c: gc2145: fix detected fail on rk1808 evb
Browse files Browse the repository at this point in the history
Change-Id: Ifa93d7c126c036d7648b3ede54e33dcfe3c90d3b
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
  • Loading branch information
allon-rk committed Sep 6, 2019
1 parent 3d622a0 commit 5d8b90e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/i2c/gc2145.c
Original file line number Diff line number Diff line change
Expand Up @@ -2596,6 +2596,11 @@ static int __gc2145_power_on(struct gc2145 *gc2145)
usleep_range(2000, 5000);
}

if (!IS_ERR(gc2145->reset_gpio)) {
gpiod_set_value_cansleep(gc2145->reset_gpio, 0);
usleep_range(2000, 5000);
}

if (!IS_ERR(gc2145->xvclk)) {
ret = clk_prepare_enable(gc2145->xvclk);
if (ret < 0)
Expand Down

0 comments on commit 5d8b90e

Please sign in to comment.