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

Commit 2e185a4b authored by Viswanadha Raju Thotakura's avatar Viswanadha Raju Thotakura
Browse files

msm: camera: Avoid multiple stop calls to CPAS



Multiple CCI clients release trigger release at CCI, make sure CPAS stop
triggered only for last client.

Change-Id: Ie6d096d5ee92efe46390d306dbce777a1d63a103
Signed-off-by: default avatarViswanadha Raju Thotakura <viswanad@codeaurora.org>
parent 505171ef
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1205,10 +1205,8 @@ static int32_t cam_cci_release(struct v4l2_subdev *sd)
	rc = cam_cci_soc_release(cci_dev);
	if (rc < 0) {
		CAM_ERR(CAM_CCI, "Failed in releasing the cci: %d", rc);
		cam_cpas_stop(cci_dev->cpas_handle);
		return rc;
	}
	cam_cpas_stop(cci_dev->cpas_handle);

	return rc;
}
+2 −0
Original line number Diff line number Diff line
@@ -392,5 +392,7 @@ int cam_cci_soc_release(struct cci_device *cci_dev)
	cci_dev->cycles_per_us = 0;
	soc_info->src_clk_idx = 0;

	cam_cpas_stop(cci_dev->cpas_handle);

	return rc;
}