From df4da1d8dd0dd33f6e384fac1e687ff2f7616cc0 Mon Sep 17 00:00:00 2001 From: Venkat Chinta Date: Fri, 17 Apr 2020 13:33:56 -0700 Subject: [PATCH] msm: camera: ife: Change log level To acquire a CSID path we loop through all available CSIDs. Therefore the log that indicates that a specific CSID does not have a path available is not a error by itself. This commit changes that log level to debug. CRs-Fixed: 2671273 Change-Id: I52750975a739faa5a4015d20cebb5f7f0442fb58 Signed-off-by: Venkat Chinta --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 4 +--- .../isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c | 8 ++++---- 2 files changed, 5 insertions(+), 7 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 d1cf9fd3eb50..e2bea21986a0 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 @@ -1639,9 +1639,7 @@ static int cam_ife_mgr_acquire_cid_res( &csid_acquire, false); if (rc || !csid_acquire.node_res) { - CAM_ERR(CAM_ISP, - "Can not acquire ife cid resource for path %d", - path_res_id); + CAM_ERR(CAM_ISP, "No %d paths available", path_res_id); goto put_res; } cid_res_temp->hw_res[acquired_cnt++] = csid_acquire.node_res; 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 19c29da3c2ec..34a5affdab0f 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 @@ -1018,7 +1018,7 @@ int cam_ife_csid_path_reserve(struct cam_ife_csid_hw *csid_hw, case CAM_IFE_PIX_PATH_RES_IPP: if (csid_hw->ipp_res.res_state != CAM_ISP_RESOURCE_STATE_AVAILABLE) { - CAM_ERR(CAM_ISP, + CAM_DBG(CAM_ISP, "CSID:%d IPP resource not available %d", csid_hw->hw_intf->hw_idx, csid_hw->ipp_res.res_state); @@ -1046,7 +1046,7 @@ int cam_ife_csid_path_reserve(struct cam_ife_csid_hw *csid_hw, case CAM_IFE_PIX_PATH_RES_PPP: if (csid_hw->ppp_res.res_state != CAM_ISP_RESOURCE_STATE_AVAILABLE) { - CAM_ERR(CAM_ISP, + CAM_DBG(CAM_ISP, "CSID:%d PPP resource not available %d", csid_hw->hw_intf->hw_idx, csid_hw->ppp_res.res_state); @@ -1077,7 +1077,7 @@ int cam_ife_csid_path_reserve(struct cam_ife_csid_hw *csid_hw, case CAM_IFE_PIX_PATH_RES_RDI_3: if (csid_hw->rdi_res[reserve->res_id].res_state != CAM_ISP_RESOURCE_STATE_AVAILABLE) { - CAM_ERR(CAM_ISP, + CAM_DBG(CAM_ISP, "CSID:%d RDI:%d resource not available %d", csid_hw->hw_intf->hw_idx, reserve->res_id, @@ -1100,7 +1100,7 @@ int cam_ife_csid_path_reserve(struct cam_ife_csid_hw *csid_hw, id = reserve->res_id - CAM_IFE_PIX_PATH_RES_UDI_0; if (csid_hw->udi_res[id].res_state != CAM_ISP_RESOURCE_STATE_AVAILABLE) { - CAM_ERR(CAM_ISP, + CAM_DBG(CAM_ISP, "CSID:%d UDI:%d resource not available %d", csid_hw->hw_intf->hw_idx, reserve->res_id,