mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
msm: camera: isp: Transition to HALT state prior to HW stop
In case of any error IRQs encountered during stop, there is no need to notify them to UMD since the entire pipeline would be reset prior to next session start. With this change we transition to HALT state and then issue stop. CRs-Fixed: 2825121 Change-Id: I9535439d1a29e3b6f8da968b60e5b2b5bc32c1bf Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:
parent
ce18cf3937
commit
b3f31ae726
1 changed files with 5 additions and 4 deletions
|
|
@ -5362,6 +5362,11 @@ static int __cam_isp_ctx_stop_dev_in_activated_unlock(
|
|||
(struct cam_isp_context *) ctx->ctx_priv;
|
||||
struct cam_isp_stop_args stop_isp;
|
||||
|
||||
/* Mask off all the incoming hardware events */
|
||||
spin_lock_bh(&ctx->lock);
|
||||
ctx_isp->substate_activated = CAM_ISP_CTX_ACTIVATED_HALT;
|
||||
spin_unlock_bh(&ctx->lock);
|
||||
|
||||
/* stop hw first */
|
||||
if (ctx_isp->hw_ctx) {
|
||||
stop.ctxt_to_hw_map = ctx_isp->hw_ctx;
|
||||
|
|
@ -5374,10 +5379,6 @@ static int __cam_isp_ctx_stop_dev_in_activated_unlock(
|
|||
&stop);
|
||||
}
|
||||
|
||||
/* Mask off all the incoming hardware events */
|
||||
spin_lock_bh(&ctx->lock);
|
||||
ctx_isp->substate_activated = CAM_ISP_CTX_ACTIVATED_HALT;
|
||||
spin_unlock_bh(&ctx->lock);
|
||||
CAM_DBG(CAM_ISP, "next Substate[%s]",
|
||||
__cam_isp_ctx_substate_val_to_type(
|
||||
ctx_isp->substate_activated));
|
||||
|
|
|
|||
Loading…
Reference in a new issue