diff --git a/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c b/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c index a5a749d109..f13103d6fe 100644 --- a/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c +++ b/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c @@ -5679,6 +5679,10 @@ static int cam_ife_csid_init_config_update( } path_cfg = (struct cam_ife_csid_ver2_path_cfg *)res->res_priv; + /* Skip epoch update if resource does not handle camif IRQs */ + if (!path_cfg->handle_camif_irq) + goto end; + path_cfg->epoch_cfg = (path_cfg->end_line - path_cfg->start_line) * init_cfg->init_config->epoch_cfg.epoch_factor / 100; @@ -5691,7 +5695,7 @@ static int cam_ife_csid_init_config_update( CAM_DBG(CAM_ISP, "Init Update for res_name: %s epoch_factor: %x", res->res_name, path_cfg->epoch_cfg); - +end: return 0; }