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

Commit 11e7f217 authored by Venkat Chinta's avatar Venkat Chinta Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Set error type to fatal



This change sets error type to fatal by default when hardware
errors occur.

CRs-Fixed: 2545140
Change-Id: Ic530fe460e67b6d5ec26a6d9d5735f4c8b34affc
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent 49d6a1b3
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1405,7 +1405,7 @@ static int __cam_isp_ctx_handle_error(struct cam_isp_context *ctx_isp,
end:
	do {
		if (list_empty(&ctx->pending_req_list)) {
			error_request_id = ctx_isp->last_applied_req_id + 1;
			error_request_id = ctx_isp->last_applied_req_id;
			req_isp = NULL;
			break;
		}
@@ -1436,13 +1436,11 @@ static int __cam_isp_ctx_handle_error(struct cam_isp_context *ctx_isp,
		notify.link_hdl = ctx->link_hdl;
		notify.dev_hdl = ctx->dev_hdl;
		notify.req_id = error_request_id;
		notify.error = CRM_KMD_ERR_FATAL;

		if (req_isp_to_report && req_isp_to_report->bubble_report) {
		if (req_isp_to_report && req_isp_to_report->bubble_report)
			if (error_event_data->recovery_enabled)
				notify.error = CRM_KMD_ERR_BUBBLE;
		} else {
			notify.error = CRM_KMD_ERR_FATAL;
		}

		CAM_WARN(CAM_ISP,
			"Notify CRM: req %lld, frame %lld ctx %u, error %d",