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 <gjindal@codeaurora.org>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user