From 006e454f569dd58cdb0a9f4145cb0f6bb9133710 Mon Sep 17 00:00:00 2001 From: Depeng Shao Date: Wed, 1 Jul 2020 15:35:04 +0800 Subject: [PATCH] msm: camera: isp: Only RDI path can access RDI resource Only RDI path can access RDI resource. CRs-Fixed: 2721399 Change-Id: Iad15b72a12cf825f150605f110bee04880a65852 Signed-off-by: Depeng Shao --- .../cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c b/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c index 41decd3ffec8..26c077ff7baf 100644 --- a/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c +++ b/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c @@ -3398,7 +3398,8 @@ int cam_ife_csid_release(void *hw_priv, csid_hw->ipp_path_config.measure_enabled = 0; else if (res->res_id == CAM_IFE_PIX_PATH_RES_PPP) csid_hw->ppp_path_config.measure_enabled = 0; - else + else if (res->res_id >= CAM_IFE_PIX_PATH_RES_RDI_0 && + res->res_id <= CAM_IFE_PIX_PATH_RES_RDI_3) csid_hw->rdi_path_config[res->res_id].measure_enabled = 0; break;