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

Commit bf74ef47 authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "msm: camera: HW CDM reset failure workaround"" into dev/msm-4.9-camx

parents 3f77d83e ba377d7e
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -785,18 +785,6 @@ int cam_hw_cdm_init(void *hw_priv,
	time_left = wait_for_completion_timeout(&cdm_core->reset_complete,
		msecs_to_jiffies(CAM_CDM_HW_RESET_TIMEOUT));

	/*
	 * Check for HW error and recover as a workaround
	 * Sometimes CDM HW triggers irq with invalid status for
	 * HW reset command, so ignore reset failure and proceed further
	 * as a workaround.
	 */
	if (time_left <= 0) {
		CAM_ERR(CAM_CDM, "CDM HW reset Wait failed time_left=%ld",
			time_left);
		time_left = 1;
	}

	if (time_left <= 0) {
		CAM_ERR(CAM_CDM, "CDM HW reset Wait failed rc=%d", rc);
		goto disable_return;