From 89c75af320d6be16f11b6bdf034347b90bf44ef1 Mon Sep 17 00:00:00 2001 From: Venkat Chinta Date: Thu, 16 Jan 2020 12:14:03 -0800 Subject: [PATCH] msm: camera: ife: Reduce config done timeout during stop This change reduces the duration of wait for config done during stop and flush. We perform wait for completion once for reg dump during flush so there is no need for a long wait during stop. CRs-Fixed: 2606911 Change-Id: Ib1c2d7655d8a213495618a140acea2391b262082 Signed-off-by: Venkat Chinta --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c index 379a33c71d34..ed0099f0acae 100644 --- a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c +++ b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c @@ -3711,19 +3711,13 @@ static int cam_ife_mgr_stop_hw(void *hw_mgr_priv, void *stop_hw_args) cam_ife_mgr_pause_hw(ctx); - rc = wait_for_completion_timeout( - &ctx->config_done_complete, - msecs_to_jiffies(300)); - if (rc <= 0) { + rc = wait_for_completion_timeout(&ctx->config_done_complete, + msecs_to_jiffies(10)); + if (rc == 0) { CAM_WARN(CAM_ISP, "config done completion timeout for last applied req_id=%llu rc=%d ctx_index %d", ctx->applied_req_id, rc, ctx->ctx_index); rc = -ETIMEDOUT; - } else { - CAM_DBG(CAM_ISP, - "config done Success for req_id=%llu ctx_index %d", - ctx->applied_req_id, ctx->ctx_index); - rc = 0; } if (stop_isp->stop_only)