From 3273afefe75420434b64a356ba3743292d9d6bfb Mon Sep 17 00:00:00 2001 From: Wyes Karny Date: Tue, 1 Jun 2021 01:03:52 +0530 Subject: [PATCH] msm: camera: reqmgr: Reset sync mode for sync link in bubble Reset sync link in case of bubble recovery. When dual link is enabled, it is not required to re-apply the sync link request in bubble recovery as the sync link request is already applied and by the time reapply comes request would not be in pending list. Therefore set the sync mode to zero for that index, so that there would not be any dependency on the sync link. CRs-Fixed: 2978526 Change-Id: I327371baecfd6d378cb773bc27c412ba6d2ba42d Signed-off-by: Wyes Karny --- drivers/cam_req_mgr/cam_req_mgr_core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/cam_req_mgr/cam_req_mgr_core.c b/drivers/cam_req_mgr/cam_req_mgr_core.c index c7d6e8252b02..beeb2ec07f3a 100644 --- a/drivers/cam_req_mgr/cam_req_mgr_core.c +++ b/drivers/cam_req_mgr/cam_req_mgr_core.c @@ -2900,6 +2900,13 @@ int cam_req_mgr_process_error(void *priv, void *data) in_q->rd_idx = idx; in_q->slot[idx].status = CRM_SLOT_STATUS_REQ_ADDED; + if (link->sync_link[0]) { + in_q->slot[idx].sync_mode = 0; + __cam_req_mgr_inc_idx(&idx, 1, + link->req.l_tbl->num_slots); + in_q->slot[idx].sync_mode = 0; + } + /* The next req may also be applied */ idx = in_q->rd_idx; __cam_req_mgr_inc_idx(&idx, 1,