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

Commit fc1a551e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: isp: fix the issue during overflow recovery"

parents ae663d46 e22bda6f
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2473,6 +2473,7 @@ int msm_isp_axi_reset(struct vfe_device *vfe_dev,
	int rc = 0, i, j;
	struct msm_vfe_axi_stream *stream_info;
	struct msm_vfe_axi_shared_data *axi_data = &vfe_dev->axi_data;
    struct msm_vfe_frame_request_queue *queue_req;
	uint32_t bufq_handle = 0, bufq_id = 0;
	struct msm_isp_timestamp timestamp;
	unsigned long flags;
@@ -2504,7 +2505,16 @@ int msm_isp_axi_reset(struct vfe_device *vfe_dev,
			j--;
			continue;
		}

        stream_info->undelivered_request_cnt = 0;
		while (!list_empty(&stream_info->request_q)) {
			queue_req = list_first_entry_or_null(
				&stream_info->request_q,
				struct msm_vfe_frame_request_queue, list);
			if (queue_req) {
				queue_req->cmd_used = 0;
				list_del(&queue_req->list);
			}
		}
		for (bufq_id = 0; bufq_id < VFE_BUF_QUEUE_MAX; bufq_id++) {
			bufq_handle = stream_info->bufq_handle[bufq_id];
			if (!bufq_handle)