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

Commit 08d329c5 authored by Alok Chauhan's avatar Alok Chauhan
Browse files

msm: camera: cdm: Avoid cdm pause incase of BL submit



BL submit and handle error callback can run in parallel.
Handle error callback do ope cdm pause and can cause
issue if BL submit callback come at the same time.

CRs-Fixed: 2620486
Change-Id: I9d803775a67f8d7d5a94cb6d8d2648794cd661de
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 803bf36d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1334,6 +1334,9 @@ 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);

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

	rc = cam_cdm_read_hw_reg(cdm_hw,
			cdm_core->offsets->cmn_reg->current_bl_len,
			&current_bl_data);
@@ -1445,9 +1448,6 @@ int cam_hw_cdm_handle_error(

	cdm_core = (struct cam_cdm *)cdm_hw->core_info;

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

	rc = cam_hw_cdm_handle_error_info(cdm_hw, handle);

	return rc;