Explorar o código

msm: camera: reqmgr: Improve CRM logging

Add CSID hw index in crm logging for better debugging.

CRs-Fixed: 2898319
Change-Id: Ia378a2eaf51f9306b5f693ba7180dd44fc6ef74d
Signed-off-by: Jigar Agrawal <[email protected]>
Jigar Agrawal %!s(int64=4) %!d(string=hai) anos
pai
achega
cd5e3f033d

+ 4 - 2
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -309,7 +309,8 @@ static int cam_ife_csid_ver2_sof_irq_debug(
 	if (csid_hw->hw_info->hw_state ==
 		CAM_HW_STATE_POWER_DOWN) {
 		CAM_WARN(CAM_ISP,
-			"CSID powered down unable to %s sof irq",
+			"CSID:%u powered down unable to %s sof irq",
+			csid_hw->hw_intf->hw_idx,
 			(sof_irq_enable) ? "enable" : "disable");
 		return 0;
 	}
@@ -343,7 +344,8 @@ static int cam_ife_csid_ver2_sof_irq_debug(
 		csid_hw->flags.sof_irq_triggered = false;
 	}
 
-	CAM_INFO(CAM_ISP, "SOF freeze: CSID SOF irq %s",
+	CAM_INFO(CAM_ISP, "SOF freeze: CSID:%u SOF irq %s",
+		csid_hw->hw_intf->hw_idx,
 		(sof_irq_enable) ? "enabled" : "disabled");
 
 	return 0;