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

Commit c47b23ae authored by Junzhe Zou's avatar Junzhe Zou
Browse files

msm: camera: core: Reset last flush req id as part of acquire ctx



KMD maintains a list of fixed contexts that are re-circulated, initializing
the flush req id in acquire to avoid the uncertainty of doing it in release
since ctx object is only put back to free list when ref count reaches 0.

Change-Id: Ia3a82cb8aacfcf93c6caf851c1bf2e73f4b762f1
Signed-off-by: default avatarJunzhe Zou <jnzhezou@codeaurora.org>
parent c949c1cf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ static int __cam_node_handle_acquire_dev(struct cam_node *node,
		goto err;
	}

	ctx->last_flush_req = 0;
	rc = cam_context_handle_acquire_dev(ctx, acquire);
	if (rc) {
		CAM_ERR(CAM_CORE, "Acquire device failed for node %s",