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

Commit b2f806d5 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: core: Reset last flush request id



After stream off the last flush request id needs to be reset
to 0 for that given ctx.

Change-Id: I3ff7307afa22b334ec2d80f60fe50dc6d5eb65d0
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 13a69340
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -457,7 +457,6 @@ int cam_context_handle_start_dev(struct cam_context *ctx,
	}

	mutex_lock(&ctx->ctx_mutex);
	ctx->last_flush_req = 0;
	if (ctx->state_machine[ctx->state].ioctl_ops.start_dev)
		rc = ctx->state_machine[ctx->state].ioctl_ops.start_dev(
			ctx, cmd);
@@ -494,6 +493,8 @@ int cam_context_handle_stop_dev(struct cam_context *ctx,
		/* stop device can be optional for some driver */
		CAM_WARN(CAM_CORE, "No stop device in dev %d, name %s state %d",
			ctx->dev_hdl, ctx->dev_name, ctx->state);

	ctx->last_flush_req = 0;
	mutex_unlock(&ctx->ctx_mutex);

	return rc;