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

Commit 02038766 authored by Rishabh Jain's avatar Rishabh Jain
Browse files

msm: camera: ope: Fix false alarm for OPE HW timeout



Resetting the timer before setting the respective request bit
in bitmap to avoid flase alarm in case of timer timeout.

CRs-Fixed: 2592991
Change-Id: I5afed26dea7ebfb9371a43323815d45cd37a6384
Signed-off-by: default avatarRishabh Jain <risjai@codeaurora.org>
parent f3c86315
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2575,8 +2575,8 @@ static int cam_ope_mgr_prepare_hw_update(void *hw_priv,
		CAM_ERR(CAM_OPE, "Invalid ctx req slot = %d", request_idx);
		return -EINVAL;
	}
	set_bit(request_idx, ctx_data->bitmap);
	cam_ope_req_timer_reset(ctx_data);
	set_bit(request_idx, ctx_data->bitmap);
	ctx_data->req_list[request_idx] =
		kzalloc(sizeof(struct cam_ope_request), GFP_KERNEL);
	if (!ctx_data->req_list[request_idx]) {