Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6d5ec84 authored by Om Parkash's avatar Om Parkash
Browse files

msm: camera: Allow applying request if congestion comes



Sometimes, due to DDR write delays, bufdone gets delyed.
It affect applying new request. This change allow applying
request if congestion comes.

Change-Id: I8eeb6b9bbc16c23e949a774503d6d6086f3e8489
Signed-off-by: default avatarOm Parkash <oparkash@codeaurora.org>
parent 033db782
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, 2021 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1863,7 +1863,7 @@ static int __cam_isp_ctx_apply_req_in_activated_state(
		req->request_id, ctx_isp->substate_activated, ctx->ctx_id);
	req_isp = (struct cam_isp_ctx_req *) req->req_priv;

	if (ctx_isp->active_req_cnt >=  2) {
	if (ctx_isp->active_req_cnt >= 4) {
		CAM_ERR_RATE_LIMIT(CAM_ISP,
			"Reject apply request (id %lld) due to congestion(cnt = %d) ctx %u",
			req->request_id,