Bladeren bron

msm: camera: csiphy: Dump CSIPHY Status Reg at SOF freeze

PHY status dump analysis need to be done to check issue
with transmitter when SOF freeze occurs as recommended by
PHY HW team.

CRs-Fixed: 2890861
Change-Id: I99d7c0dca85c8f2f491a29c774bacf31d4bc641f
Signed-off-by: Chandan Kumar Jha <[email protected]>
Chandan Kumar Jha 4 jaren geleden
bovenliggende
commit
54de1ed8f1

+ 7 - 0
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver1.c

@@ -3346,6 +3346,13 @@ static int cam_ife_csid_ver1_sof_irq_debug(
 	CAM_INFO(CAM_ISP, "SOF freeze: CSID SOF irq %s",
 		(sof_irq_enable) ? "enabled" : "disabled");
 
+	CAM_INFO(CAM_ISP, "Notify CSIPHY: %d",
+			csid_hw->rx_cfg.phy_sel);
+
+	cam_subdev_notify_message(CAM_CSIPHY_DEVICE_TYPE,
+			CAM_SUBDEV_MESSAGE_IRQ_ERR,
+			(csid_hw->rx_cfg.phy_sel));
+
 	return 0;
 }
 

+ 7 - 0
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -349,6 +349,13 @@ static int cam_ife_csid_ver2_sof_irq_debug(
 		csid_hw->hw_intf->hw_idx,
 		(sof_irq_enable) ? "enabled" : "disabled");
 
+	CAM_INFO(CAM_ISP, "Notify CSIPHY: %d",
+			csid_hw->rx_cfg.phy_sel);
+
+	cam_subdev_notify_message(CAM_CSIPHY_DEVICE_TYPE,
+			CAM_SUBDEV_MESSAGE_IRQ_ERR,
+			(csid_hw->rx_cfg.phy_sel));
+
 	return 0;
 }