From 5155e8b6126459a2c205beacbcd6ce247118a43a Mon Sep 17 00:00:00 2001 From: Shravya Samala Date: Thu, 3 Sep 2020 17:38:27 +0530 Subject: [PATCH] msm: camera: tfe: TPG stop Call Move TPG stop call before checking if Deinit call is required or not. CRs-Fixed: 2777023 Change-Id: I9c7be620c2ba2762324129e547efc1d2a8dd6f40 Signed-off-by: Shravya Samala --- drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c b/drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c index 01bfce100c..ebe69a1eac 100644 --- a/drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c +++ b/drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c @@ -2844,15 +2844,15 @@ static int cam_tfe_mgr_stop_hw(void *hw_mgr_priv, void *stop_hw_args) wait_for_completion_timeout(&ctx->config_done_complete, msecs_to_jiffies(5)); + if (ctx->is_tpg) + cam_tfe_hw_mgr_stop_hw_res(&ctx->res_list_tpg); + if (stop_isp->stop_only) goto end; if (cam_cdm_stream_off(ctx->cdm_handle)) CAM_ERR(CAM_ISP, "CDM stream off failed %d", ctx->cdm_handle); - if (ctx->is_tpg) - cam_tfe_hw_mgr_stop_hw_res(&ctx->res_list_tpg); - cam_tfe_hw_mgr_deinit_hw(ctx); CAM_DBG(CAM_ISP,