Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb91db92 authored by Lokesh Kumar Aakulu's avatar Lokesh Kumar Aakulu
Browse files

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: default avatarLokesh Kumar Aakulu <lkumar@codeaurora.org>
parent 6f777b23
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {