diff options
author | Frank Chen <frankc@nvidia.com> | 2018-05-18 20:58:53 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-22 18:08:16 -0400 |
commit | 9f28d78340643f8234dcbf84b66baf0a19193755 (patch) | |
tree | 3954fb523a4b93742655dd2d3956e3f42e1c7666 /drivers/media/i2c/ov5693.c | |
parent | 7c51fd43aeba1b68ad443c4c5d07ecde80282df5 (diff) |
media: i2c: ov5693: set gpio direction as output
Force to set gpio direction as output for power
down and reset pins, in case they are pre-configured
as SFIO.
Jira CT-1117
Bug 200405748
Change-Id: I98f1be8890244a1a645a47215e1e4dc39fbfb186
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1724529
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/media/i2c/ov5693.c')
-rw-r--r-- | drivers/media/i2c/ov5693.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 0315c2d50..2b5cf76b5 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c | |||
@@ -512,6 +512,7 @@ skip_clkvdd: | |||
512 | dev_dbg(dev, "%s can't request pwdn_gpio %d\n", | 512 | dev_dbg(dev, "%s can't request pwdn_gpio %d\n", |
513 | __func__, ret); | 513 | __func__, ret); |
514 | } | 514 | } |
515 | gpio_direction_output(pw->pwdn_gpio, 1); | ||
515 | } | 516 | } |
516 | if (gpio_is_valid(pw->reset_gpio)) { | 517 | if (gpio_is_valid(pw->reset_gpio)) { |
517 | ret = gpio_request(pw->reset_gpio, "cam_reset_gpio"); | 518 | ret = gpio_request(pw->reset_gpio, "cam_reset_gpio"); |
@@ -519,6 +520,7 @@ skip_clkvdd: | |||
519 | dev_dbg(dev, "%s can't request reset_gpio %d\n", | 520 | dev_dbg(dev, "%s can't request reset_gpio %d\n", |
520 | __func__, ret); | 521 | __func__, ret); |
521 | } | 522 | } |
523 | gpio_direction_output(pw->reset_gpio, 1); | ||
522 | } | 524 | } |
523 | } | 525 | } |
524 | 526 | ||