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

Commit f960ce5d authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj
Browse files

msm: camera: isp: Reset process_bubble during stop



If process_bubble is set and stop dev is called before resetting
process_bubble, then process_bubble is left set in isp_ctx. It results
in apply fail in upcoming sessions.

Change-Id: I2c542d61a0e42f6a89e26c74b67a1673b89f066d
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent 00e32fc3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -3294,6 +3294,7 @@ static int __cam_isp_ctx_stop_dev_in_activated_unlock(
	ctx_isp->frame_id = 0;
	ctx_isp->active_req_cnt = 0;
	ctx_isp->reported_req_id = 0;
	atomic_set(&ctx_isp->process_bubble, 0);

	CAM_DBG(CAM_ISP, "Stop device success next state %d on ctx %u",
		ctx->state, ctx->ctx_id);