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

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

Merge "msm: camera: reqmgr: Reset the status for next req if bubble" into camera-kernel.lnx.4.0

parents c2963ede 0b798d0f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2747,6 +2747,14 @@ int cam_req_mgr_process_error(void *priv, void *data)
			in_q->rd_idx = idx;
			in_q->slot[idx].status = CRM_SLOT_STATUS_REQ_ADDED;

			/* The next req may also be applied */
			idx = in_q->rd_idx;
			__cam_req_mgr_inc_idx(&idx, 1,
				link->req.l_tbl->num_slots);

			if (in_q->slot[idx].status == CRM_SLOT_STATUS_REQ_APPLIED)
				in_q->slot[idx].status = CRM_SLOT_STATUS_REQ_ADDED;

			spin_lock_bh(&link->link_state_spin_lock);
			link->state = CAM_CRM_LINK_STATE_ERR;
			spin_unlock_bh(&link->link_state_spin_lock);