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

Commit d9576f9f authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: cdm: Added cdm power state check" into camera-kernel.lnx.4.0

parents dc2f71dd 8fcc66fa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1647,6 +1647,11 @@ int cam_hw_cdm_handle_error_info(
	set_bit(CAM_CDM_RESET_HW_STATUS, &cdm_core->cdm_status);
	set_bit(CAM_CDM_FLUSH_HW_STATUS, &cdm_core->cdm_status);

	if (cdm_hw->hw_state == CAM_HW_STATE_POWER_DOWN) {
		CAM_WARN(CAM_CDM, "CDM is in power down state");
		goto end;
	}

	/* First pause CDM, If it fails still proceed to dump debug info */
	cam_hw_cdm_pause_core(cdm_hw, true);