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

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

Merge "msm: camera: reqmgr: Workqueue congestion handling" into camera-kernel.lnx.1.0

parents 2495d582 4ae94979
Loading
Loading
Loading
Loading
+20 −14
Original line number Diff line number Diff line
@@ -1495,6 +1495,7 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,

	rc = __cam_req_mgr_send_req(link, link->req.in_q, trigger, &dev);
	if (rc < 0) {
		if (in_q->last_applied_idx < in_q->rd_idx) {
			/* Apply req failed retry at next sof */
			slot->status = CRM_SLOT_STATUS_REQ_PENDING;
			link->retry_cnt++;
@@ -1509,6 +1510,11 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,
				__cam_req_mgr_notify_error_on_link(link, dev);
				link->retry_cnt = 0;
			}
		} else
			CAM_WARN(CAM_CRM,
				"workqueue congestion, last applied idx:%d rd idx:%d",
				in_q->last_applied_idx,
				in_q->rd_idx);
	} else {
		if (link->retry_cnt)
			link->retry_cnt = 0;