diff options
author | Sandor Yu <R01008@freescale.com> | 2015-06-29 17:04:02 +0800 |
---|---|---|
committer | Sandor Yu <R01008@freescale.com> | 2015-06-30 14:14:23 +0800 |
commit | 6495956c6e00ab7542c6bb2c8105eb9c1cc69438 (patch) | |
tree | 6e4df6f8ba748b20e577c1202e6a8736dfc5f177 | |
parent | d78675501435c3346de7ccea2ab3646256d1ab46 (diff) |
MLK-10507: ov5640 mipi: Keep sensor in power up state after probe
Sometimes ov5640 can not working on iMX7D ARM2 board,
ov5640 signal is not accepted by imx7d mipi csi phy.
Remove power down function and keep ov5640 power up after
driver probe, the issue is fixed.
Signed-off-by: Sandor Yu <R01008@freescale.com>
(cherry picked from commit d5e090bbfe9939a8e3c278ef86eddab0c9873fa9)
-rw-r--r-- | drivers/media/platform/mxc/subdev/ov5640_mipi.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/platform/mxc/subdev/ov5640_mipi.c b/drivers/media/platform/mxc/subdev/ov5640_mipi.c index 17cb82cea7b2..215e345e6562 100644 --- a/drivers/media/platform/mxc/subdev/ov5640_mipi.c +++ b/drivers/media/platform/mxc/subdev/ov5640_mipi.c @@ -1446,8 +1446,6 @@ static int ov5640_s_power(struct v4l2_subdev *sd, int on) if (analog_regulator) if (regulator_enable(analog_regulator) != 0) return -EIO; - /* Make sure power on */ - ov5640_power_down(0); } else if (!on && sensor->on) { if (analog_regulator) regulator_disable(analog_regulator); @@ -1457,8 +1455,6 @@ static int ov5640_s_power(struct v4l2_subdev *sd, int on) regulator_disable(io_regulator); if (gpo_regulator) regulator_disable(gpo_regulator); - - ov5640_power_down(1); } sensor->on = on; @@ -1529,9 +1525,6 @@ static int ov5640_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *a) enum ov5640_mode orig_mode; int ret = 0; - /* Make sure power on */ - ov5640_power_down(0); - switch (a->type) { /* This is the only case currently handled. */ case V4L2_BUF_TYPE_VIDEO_CAPTURE: |