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

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

msm: camera: ope: Start context timer on receiving new request



Restart the context timer on receiving new request, if stopped due
to idleness of the context.

CRs-Fixed: 2617511
Change-Id: If8e3d1412cb7ad6195a7e2fa55b7ed456f4a4321
Signed-off-by: default avatarRishabh Jain <risjai@codeaurora.org>
parent 6d2eb031
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2707,7 +2707,7 @@ static int cam_ope_mgr_prepare_hw_update(void *hw_priv,
	get_monotonic_boottime64(&ts);
	ctx_data->last_req_time = (uint64_t)((ts.tv_sec * 1000000000) +
		ts.tv_nsec);
	cam_ope_req_timer_reset(ctx_data);
	cam_ope_req_timer_modify(ctx_data, OPE_REQUEST_TIMEOUT);
	set_bit(request_idx, ctx_data->bitmap);
	ctx_data->req_list[request_idx] =
		kzalloc(sizeof(struct cam_ope_request), GFP_KERNEL);