From 931927867f1f36808c27d10ef7b38617d20b071d Mon Sep 17 00:00:00 2001 From: Gaurav Jindal Date: Wed, 6 Oct 2021 16:39:43 +0530 Subject: [PATCH] msm: camera: isp: Handle RUP for enabled CSID CAMIF IRQs CAMIF interrupts in CSID are enabled based on use case requirements. In additionto this, inside hw manager propagation to isp context is again dependent on the same checks. Since the enabling is based on use-case, the checks in the handler functions are redundant. With upgrades in hardware, the checks are increasing while handling in hw manager. This commit removes the checks in handler function in hw manager. CRs-Fixed: 3052221 Change-Id: I44f59b782dba0f7e7eb20c2ace56f3094527932b Signed-off-by: Gaurav Jindal --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 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 19fe334952..50a9e4a32b 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 @@ -11403,35 +11403,17 @@ static int cam_ife_hw_mgr_handle_csid_rup( switch (event_info->res_id) { case CAM_IFE_PIX_PATH_RES_IPP: - if ((ife_hw_mgr_ctx->flags.is_dual) && - (event_info->hw_idx != - ife_hw_mgr_ctx->left_hw_idx)) - break; - - if (atomic_read(&ife_hw_mgr_ctx->overflow_pending)) - break; - ife_hwr_irq_rup_cb(ife_hw_mgr_ctx->common.cb_priv, - CAM_ISP_HW_EVENT_REG_UPDATE, &rup_event_data); - break; - case CAM_IFE_PIX_PATH_RES_RDI_0: case CAM_IFE_PIX_PATH_RES_RDI_1: case CAM_IFE_PIX_PATH_RES_RDI_2: case CAM_IFE_PIX_PATH_RES_RDI_3: case CAM_IFE_PIX_PATH_RES_RDI_4: - /* Process RDI RUP only for RDI only/sHDR/FS use-cases */ - if (!ife_hw_mgr_ctx->flags.is_rdi_only_context && - !((ife_hw_mgr_ctx->flags.is_fe_enabled) && - (ife_hw_mgr_ctx->ctx_type == CAM_IFE_CTX_TYPE_SFE))) - break; + case CAM_IFE_PIX_PATH_RES_PPP: if (atomic_read(&ife_hw_mgr_ctx->overflow_pending)) break; ife_hwr_irq_rup_cb(ife_hw_mgr_ctx->common.cb_priv, CAM_ISP_HW_EVENT_REG_UPDATE, &rup_event_data); break; - - case CAM_IFE_PIX_PATH_RES_PPP: - break; default: CAM_ERR_RATE_LIMIT(CAM_ISP, "Invalid res_id: %d", event_info->res_id);