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 <shravyas@codeaurora.org>
This commit is contained in:
Shravya Samala
2020-09-03 17:38:27 +05:30
committed by Gerrit - the friendly Code Review server
parent a3af5ac2a3
commit 5155e8b612

View File

@@ -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, wait_for_completion_timeout(&ctx->config_done_complete,
msecs_to_jiffies(5)); msecs_to_jiffies(5));
if (ctx->is_tpg)
cam_tfe_hw_mgr_stop_hw_res(&ctx->res_list_tpg);
if (stop_isp->stop_only) if (stop_isp->stop_only)
goto end; goto end;
if (cam_cdm_stream_off(ctx->cdm_handle)) if (cam_cdm_stream_off(ctx->cdm_handle))
CAM_ERR(CAM_ISP, "CDM stream off failed %d", 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_tfe_hw_mgr_deinit_hw(ctx);
CAM_DBG(CAM_ISP, CAM_DBG(CAM_ISP,