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

msm: camera: reqmgr: Reset the trigger cnt when trigger cnt mismatch

In sHDR case, the trigger cnt may be different when one of the IFE
meet bubble or irq delay issue, then reset the trigger cnt when
we find the trigger cnt is different.

CRs-Fixed: 2857614
Change-Id: Ie02fd7204bebd16d32d7a277ac1f2e45f8357dd9
Signed-off-by: Depeng Shao <[email protected]>
Depeng Shao 4 жил өмнө
parent
commit
b4d2d77fb9

+ 5 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -3153,8 +3153,12 @@ static int __cam_req_mgr_check_for_dual_trigger(
 		(link->trigger_cnt[1] &&
 		(link->trigger_cnt[1] - link->trigger_cnt[0] > 1))) {
 
-		CAM_ERR(CAM_CRM,
+		CAM_WARN(CAM_CRM,
 			"One of the devices could not generate trigger");
+
+		link->trigger_cnt[0] = 0;
+		link->trigger_cnt[1] = 0;
+		CAM_DBG(CAM_CRM, "Reset the trigger cnt");
 		return rc;
 	}