From 34582e71466518b682c288cdce4060e739f3fe72 Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Thu, 29 Jun 2023 11:30:29 -0700 Subject: [PATCH] msm: camera: isp: Remove redundant CSID global SW reset When the camera subsystem is powered on (titan_top), async reset is issued thereby ensuring clean state for all CSIDs. At the start of the use-case, issuing a sync global SW reset is redundant, and can be avoided. At the end of the use-case, issue a SW sync global reset thereby ensuring all SWI registers are wiped out for the CSID and all connected cores. The sync global reset also ensures the rx decoder is also reset. CRs-Fixed: 3545161 Change-Id: I0f5e25bad8508f72b2a0395df4dafc368f71243c Signed-off-by: Karthik Anantha Ram --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c index d306b64717..c1d432080e 100644 --- a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c +++ b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c @@ -1227,7 +1227,6 @@ static int cam_ife_hw_mgr_init_hw( struct cam_ife_hw_mgr_ctx *ctx) { struct cam_isp_hw_mgr_res *hw_mgr_res; - struct cam_ife_hw_mgr *hw_mgr; int rc = 0, i; /* INIT IFE SRC */ @@ -1307,17 +1306,6 @@ static int cam_ife_hw_mgr_init_hw( } } - hw_mgr = ctx->hw_mgr; - - if (hw_mgr->csid_global_reset_en) { - rc = cam_ife_hw_mgr_reset_csid(ctx, - CAM_IFE_CSID_RESET_GLOBAL); - if (rc) { - CAM_ERR(CAM_ISP, "CSID reset failed, ctx_idx:%u", ctx->ctx_index); - goto deinit; - } - } - /* Check if any cache needs to be activated */ for (i = CAM_LLCC_SMALL_1; i < CAM_LLCC_MAX; i++) { if (ctx->flags.sys_cache_usage[i]) {