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

Commit 9167e96b authored by Rishabh Jain's avatar Rishabh Jain
Browse files

msm: camera: isp: Increase default SOF freeze timeout



Increase default SOF freeze timeout to 5 second. This
will be updated based on additional timeout received in
further requests.

CRs-Fixed: 2612131
Change-Id: I6b2cb40ea288cb631acf429471a660f8dd4812b9
Signed-off-by: default avatarRishabh Jain <risjai@codeaurora.org>
parent 6ebe9aa5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/module.h>
@@ -3665,7 +3665,7 @@ int cam_req_mgr_link_control(struct cam_req_mgr_link_control *control)
		if (control->ops == CAM_REQ_MGR_LINK_ACTIVATE) {
			/* Start SOF watchdog timer */
			rc = crm_timer_init(&link->watchdog,
				CAM_REQ_MGR_WATCHDOG_TIMEOUT, link,
				CAM_REQ_MGR_WATCHDOG_TIMEOUT_DEFAULT, link,
				&__cam_req_mgr_sof_freeze);
			if (rc < 0) {
				CAM_ERR(CAM_CRM,
+6 −5
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 */
#ifndef _CAM_REQ_MGR_CORE_H_
#define _CAM_REQ_MGR_CORE_H_
@@ -14,6 +14,7 @@
#define MAX_REQ_SLOTS                  48

#define CAM_REQ_MGR_WATCHDOG_TIMEOUT          1000
#define CAM_REQ_MGR_WATCHDOG_TIMEOUT_DEFAULT  5000
#define CAM_REQ_MGR_WATCHDOG_TIMEOUT_MAX      50000
#define CAM_REQ_MGR_SCHED_REQ_TIMEOUT         1000
#define CAM_REQ_MGR_SIMULATE_SCHED_REQ        30