瀏覽代碼

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 <[email protected]>
Shravya Samala 4 年之前
父節點
當前提交
5155e8b612
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

+ 3 - 3
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,