Ver Fonte

msm: camera: isp: Add check for rc before overwriting

Adds a check for rc in case of VFE process cmd failure
during cam_ife_mgr_start_hw function.

CRs-Fixed: 3317130
Change-Id: I686828ed5593aeaae6e00bb2435df32b27a2a9bd
Signed-off-by: Joshua Florez <[email protected]>
Joshua Florez há 2 anos atrás
pai
commit
e2383abcf0
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

+ 5 - 0
drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

@@ -7184,6 +7184,11 @@ static int cam_ife_mgr_start_hw(void *hw_mgr_priv, void *start_hw_args)
 					CAM_ISP_HW_CMD_SET_CAMIF_DEBUG,
 					&camif_debug,
 					sizeof(camif_debug));
+				if (rc) {
+					CAM_ERR(CAM_ISP,
+						"VFE process cmd failed for rsrc_id:%d, rc:%d",
+						rsrc_node->res_id, rc);
+				}
 			}
 		}
 	}