Эх сурвалжийг харах

msm: camera: isp: Fix the format measure logging

Currently the actual and expected frame size is being
read interchangeably. The change addresses this and
prints the format measure params correctly.

CRs-Fixed: 2841729
Change-Id: Ie07745f7ec39c06ac54afdaea379749954c7672e
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 4 жил өмнө
parent
commit
5a1589a3c4

+ 6 - 6
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -1320,9 +1320,9 @@ static int cam_ife_csid_ver2_ipp_bottom_half(
 	if (irq_status_ipp & (IFE_CSID_VER2_PATH_ERROR_PIX_COUNT |
 		IFE_CSID_VER2_PATH_ERROR_LINE_COUNT)) {
 
-		expected_frame = cam_io_r_mb(base +
-				csid_reg->ipp_reg->format_measure0_addr);
 		actual_frame = cam_io_r_mb(base +
+				csid_reg->ipp_reg->format_measure0_addr);
+		expected_frame = cam_io_r_mb(base +
 				csid_reg->ipp_reg->format_measure_cfg1_addr);
 
 		CAM_ERR_RATE_LIMIT(CAM_ISP, "CSID[%d] IPP Frame Size Error Expected[h: %u w: %u] Actual[h: %u w: %u]",
@@ -1403,9 +1403,9 @@ static int cam_ife_csid_ver2_ppp_bottom_half(
 		IFE_CSID_VER2_PATH_ERROR_LINE_COUNT)) {
 		soc_info = &csid_hw->hw_info->soc_info;
 
-		expected_frame = cam_io_r_mb(base +
-				csid_reg->ppp_reg->format_measure0_addr);
 		actual_frame = cam_io_r_mb(base +
+				csid_reg->ppp_reg->format_measure0_addr);
+		expected_frame = cam_io_r_mb(base +
 				csid_reg->ppp_reg->format_measure_cfg1_addr);
 
 		CAM_ERR_RATE_LIMIT(CAM_ISP, "CSID[%d] PPP Frame Size Error Expected[h: %u w: %u] Actual[h: %u w: %u]",
@@ -1501,9 +1501,9 @@ static int cam_ife_csid_ver2_rdi_bottom_half(
 				IFE_CSID_VER2_PATH_ERROR_LINE_COUNT)) {
 		soc_info = &csid_hw->hw_info->soc_info;
 
-		expected_frame = cam_io_r_mb(base +
-				rdi_reg->format_measure0_addr);
 		actual_frame = cam_io_r_mb(base +
+				rdi_reg->format_measure0_addr);
+		expected_frame = cam_io_r_mb(base +
 				rdi_reg->format_measure_cfg1_addr);
 
 		CAM_ERR_RATE_LIMIT(CAM_ISP,