From 8e746194c9ab33c733d1e64e8ec240dabc717c66 Mon Sep 17 00:00:00 2001 From: Tejas Prajapati Date: Wed, 5 Aug 2020 14:28:13 +0530 Subject: [PATCH] msm: camera: ope: remove the check for dev_type Calculate the total clk of all the ctx irrespective of the use case for the ctx. Remove dev_type check to add all the ctx clk while calculating total clk. CRs-Fixed: 2754351 Change-Id: I5c1681ac1a88cfec752ff58fd8b1f6ac5d05b28a Signed-off-by: Tejas Prajapati --- drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c b/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c index ef01db9b13f7..db9e760d1e15 100644 --- a/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c +++ b/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c @@ -1084,8 +1084,7 @@ static int cam_ope_calc_total_clk(struct cam_ope_hw_mgr *hw_mgr, hw_mgr_clk_info->base_clk = 0; for (i = 0; i < OPE_CTX_MAX; i++) { ctx_data = &hw_mgr->ctx[i]; - if (ctx_data->ctx_state == OPE_CTX_STATE_ACQUIRED && - ctx_data->ope_acquire.dev_type == dev_type) + if (ctx_data->ctx_state == OPE_CTX_STATE_ACQUIRED) hw_mgr_clk_info->base_clk += ctx_data->clk_info.base_clk; }