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

Commit eeeb1c3a authored by Vishalsingh Hajeri's avatar Vishalsingh Hajeri Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: icp: Change ctx state check for abort/destroy



In case of IPE/BPS abort/destroy command, complete is signaled
for all ctx states except for free state.

Change-Id: I1661b07bf6dc65aff77a7031d49557a3b32f1629
Signed-off-by: default avatarvhajeri <vhajeri@codeaurora.org>
parent dceaac05
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1597,8 +1597,7 @@ static int cam_icp_mgr_process_direct_ack_msg(uint32_t *msg_ptr)
		ioconfig_ack = (struct hfi_msg_ipebps_async_ack *)msg_ptr;
		ctx_data =
			(struct cam_icp_hw_ctx_data *)ioconfig_ack->user_data1;
		if ((ctx_data->state == CAM_ICP_CTX_STATE_RELEASE) ||
			(ctx_data->state == CAM_ICP_CTX_STATE_IN_USE))
		if (ctx_data->state != CAM_ICP_CTX_STATE_FREE)
			complete(&ctx_data->wait_complete);

		break;