From de3c732e6c23c0c1eb2d31841865dcd804c0f6a5 Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Wed, 14 Oct 2020 20:28:05 -0700 Subject: [PATCH] msm: camera: reqmgr: Remove idx check when detecting congestion Remove last applied idx check when detecting workq delays. CRs-Fixed: 2801863 Change-Id: I85fe5aa9af446b25a3dd139a75cf1ed6b2a1253c Signed-off-by: Karthik Anantha Ram --- drivers/cam_req_mgr/cam_req_mgr_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cam_req_mgr/cam_req_mgr_core.c b/drivers/cam_req_mgr/cam_req_mgr_core.c index 33ea1bb6785e..fdbd9565ab49 100644 --- a/drivers/cam_req_mgr/cam_req_mgr_core.c +++ b/drivers/cam_req_mgr/cam_req_mgr_core.c @@ -1758,8 +1758,7 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link, if (link->max_delay == 1) max_retry++; - if ((in_q->last_applied_idx < in_q->rd_idx) && - !link->wq_congestion) { + if (!link->wq_congestion) { link->retry_cnt++; if (link->retry_cnt == max_retry) { CAM_DBG(CAM_CRM,