summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLokesh Kumar Aakulu <lkumar@codeaurora.org>2017-10-12 14:09:09 +0530
committerLokesh Kumar Aakulu <lkumar@codeaurora.org>2017-10-12 14:23:54 +0530
commitbb91db920155537f249a49da4d09d914d49f59cb (patch)
tree43ad8eb18faa8a0f12715a1264499e7f2d34ba93
parent6f777b2385c98a17d69bbeead6edbc7ad7470f72 (diff)
msm: camera: isp: Initialize the isp clock index before enable
During get clock routine there is a possiblity that clock index that is used for enable clock routine may become un-initialized with incorrect clock index which might ind- use zero isp clocks to be enabled and eventually make an unclocked access. So, initialize clock index correctly ba- sed on all combinations of clock names for given target device tree. Change-Id: I42cc72db45d29d79a84984b10dbb3c9c8112894b Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
-rw-r--r--drivers/media/platform/msm/camera_v2/isp/msm_isp47.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp47.c b/drivers/media/platform/msm/camera_v2/isp/msm_isp47.c
index 6716bb6caad6..70950a88fc66 100644
--- a/drivers/media/platform/msm/camera_v2/isp/msm_isp47.c
+++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp47.c
@@ -2561,6 +2561,7 @@ int msm_vfe47_get_clks(struct vfe_device *vfe_dev)
if (rc)
return rc;
+ vfe_dev->num_norm_clk = vfe_dev->num_clk;
for (i = 0; i < vfe_dev->num_clk; i++) {
if (strcmp(vfe_dev->vfe_clk_info[i].clk_name,
"camss_vfe_stream_clk") == 0) {