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

Commit 16a8981b authored by Shravya Samala's avatar Shravya Samala
Browse files

msm: camera: tfe: Reduce reset timeout to 100ms



Reduce reset timeout to 100ms and also added
converting msec to jiffies logic for this 100ms
reset timeout value.

CRs-Fixed: 2624883
Change-Id: Ibb4841bf45ee505b33480ef32445754095870f0d
Signed-off-by: default avatarShravya Samala <shravyas@codeaurora.org>
parent 10ea3ffc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2212,8 +2212,9 @@ int cam_tfe_reset(void *hw_priv, void *reset_core_args, uint32_t arg_size)

	CAM_DBG(CAM_ISP, "TFE:%d waiting for tfe reset complete",
		core_info->core_index);
	/* Wait for Completion or Timeout of 500ms */
	rc = wait_for_completion_timeout(&core_info->reset_complete, 500);
	/* Wait for Completion or Timeout of 100ms */
	rc = wait_for_completion_timeout(&core_info->reset_complete,
		msecs_to_jiffies(100));
	if (rc <= 0) {
		CAM_ERR(CAM_ISP, "TFE:%d Error Reset Timeout",
			core_info->core_index);