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

Commit 87eda9cf authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: reqmgr: Hold slave slot based on master pd"

parents 74a8fca8 ae5e2aef
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -982,6 +982,7 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,
	uint32_t trigger)
{
	int                                  rc = 0, idx;
	int                                  reset_step = 0;
	struct cam_req_mgr_slot             *slot = NULL;
	struct cam_req_mgr_req_queue        *in_q;
	struct cam_req_mgr_core_session     *session;
@@ -1114,8 +1115,15 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,
				slot->req_id,
				link->link_hdl);
			idx = in_q->rd_idx;
			reset_step = link->max_delay;
			if (link->sync_link) {
				if ((link->in_msync_mode) &&
					(link->sync_link->is_master))
					reset_step =
						link->sync_link->max_delay;
			}
			__cam_req_mgr_dec_idx(
				&idx, link->max_delay + 1,
				&idx, reset_step + 1,
				in_q->num_slots);
			__cam_req_mgr_reset_req_slot(link, idx);
		}