浏览代码

msm: camera: isp: Reinit completion struct for CSID reset

Currently, CSID reset completion struct gets initialized once but never
gets reinitialized. This change reinitializes the completion struct
before calling CSID reset to prevent errors.

CRs-Fixed: 2830502
Change-Id: Ie538c3cb2152edcd7c38d1a6f98ab21831288ac8
Signed-off-by: Anand Ravi <[email protected]>
Anand Ravi 4 年之前
父节点
当前提交
b0f5a7f274
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

+ 1 - 0
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -1144,6 +1144,7 @@ static int cam_ife_csid_ver2_internal_reset(
 
 	soc_info = &csid_hw->hw_info->soc_info;
 	mem_base = soc_info->reg_map[CAM_IFE_CSID_CLC_MEM_BASE_ID].mem_base;
+	reinit_completion(&csid_hw->irq_complete[CAM_IFE_CSID_IRQ_REG_TOP]);
 
 	if (csid_hw->hw_info->hw_state != CAM_HW_STATE_POWER_UP) {
 		CAM_ERR(CAM_ISP, "CSID[%d] powered down state",